/* ==========================================================================
   PhornMovies - Core Design System & Styling
   Theme: Dark Obsidian with Electric Neon Purple & Cyber Cyan Glow
   Typography: Kantumruy Pro & Koh Santepheap (Khmer) + Outfit (Latin)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Koh+Santepheap:wght@300;400;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #080a11;
  --bg-card: #111522;
  --bg-card-hover: #181d2e;
  --bg-glass: rgba(18, 22, 36, 0.75);
  --bg-glass-card: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.4);

  /* Gradients */
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
  --accent-gradient-hover: linear-gradient(135deg, #c084fc 0%, #22d3ee 100%);
  --fire-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  
  /* Solid Accents */
  --primary-purple: #a855f7;
  --primary-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Shadows */
  --shadow-neon: 0 0 25px rgba(168, 85, 247, 0.35);
  --shadow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

  /* Font Families */
  --font-khmer: 'Kantumruy Pro', 'Koh Santepheap', sans-serif;
  --font-latin: 'Outfit', 'Inter', sans-serif;

  /* Transitions & Animation Variables */
  --smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Theme Palette Configurations */
[data-theme="palace"] {
  --bg-dark: #140507;
  --bg-card: #250a0e;
  --bg-card-hover: #351016;
  --bg-glass: rgba(37, 10, 14, 0.85);
  --primary-cyan: #fbbf24;
  --primary-purple: #e11d48;
  --accent-pink: #f43f5e;
  --accent-gradient: linear-gradient(135deg, #e11d48 0%, #b91c1c 40%, #fbbf24 100%);
  --border-glow: rgba(251, 191, 36, 0.5);
  --shadow-neon: 0 0 25px rgba(225, 29, 72, 0.4);
}

[data-theme="romance"] {
  --bg-dark: #170a16;
  --bg-card: #291026;
  --bg-card-hover: #391635;
  --bg-glass: rgba(41, 16, 38, 0.85);
  --primary-cyan: #f472b6;
  --primary-purple: #ec4899;
  --accent-pink: #fb7185;
  --accent-gradient: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #f472b6 100%);
  --border-glow: rgba(236, 72, 153, 0.5);
  --shadow-neon: 0 0 25px rgba(236, 72, 153, 0.45);
}

[data-theme="cyberpunk"] {
  --bg-dark: #030712;
  --bg-card: #0b0f19;
  --bg-card-hover: #111827;
  --bg-glass: rgba(11, 15, 25, 0.85);
  --primary-cyan: #00f0ff;
  --primary-purple: #a855f7;
  --accent-pink: #ff007f;
  --accent-gradient: linear-gradient(135deg, #00f0ff 0%, #7c3aed 50%, #ff007f 100%);
  --border-glow: rgba(0, 240, 255, 0.6);
  --shadow-neon: 0 0 30px rgba(0, 240, 255, 0.5);
}

[data-theme="purple"] {
  --bg-dark: #0c0714;
  --bg-card: #160e24;
  --primary-cyan: #d946ef;
  --primary-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #d946ef 50%, #ec4899 100%);
  --border-glow: rgba(217, 70, 239, 0.5);
  --shadow-neon: 0 0 25px rgba(217, 70, 239, 0.4);
}

[data-theme="emerald"] {
  --bg-dark: #04120e;
  --bg-card: #0a2019;
  --primary-cyan: #10b981;
  --primary-purple: #06b6d4;
  --accent-pink: #34d399;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #34d399 100%);
  --border-glow: rgba(16, 185, 129, 0.5);
  --shadow-neon: 0 0 25px rgba(16, 185, 129, 0.4);
}

[data-theme="gold"] {
  --bg-dark: #120e06;
  --bg-card: #221a0a;
  --primary-cyan: #f59e0b;
  --primary-purple: #d97706;
  --accent-pink: #fbbf24;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #fbbf24 100%);
  --border-glow: rgba(245, 158, 11, 0.5);
  --shadow-neon: 0 0 25px rgba(245, 158, 11, 0.4);
}

[data-theme="crimson"] {
  --bg-dark: #140507;
  --bg-card: #240a0e;
  --primary-cyan: #ef4444;
  --primary-purple: #b91c1c;
  --accent-pink: #f87171;
  --accent-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 50%, #f87171 100%);
  --border-glow: rgba(239, 68, 68, 0.5);
  --shadow-neon: 0 0 25px rgba(239, 68, 68, 0.4);
}

[data-theme="ocean"] {
  --bg-dark: #050b14;
  --bg-card: #0a172a;
  --primary-cyan: #3b82f6;
  --primary-purple: #1d4ed8;
  --accent-pink: #60a5fa;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #60a5fa 100%);
  --border-glow: rgba(59, 130, 246, 0.5);
  --shadow-neon: 0 0 25px rgba(59, 130, 246, 0.4);
}

[data-theme="sunset"] {
  --bg-dark: #140a07;
  --bg-card: #25120c;
  --primary-cyan: #f97316;
  --primary-purple: #ec4899;
  --accent-pink: #eab308;
  --accent-gradient: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #eab308 100%);
  --border-glow: rgba(249, 115, 22, 0.5);
  --shadow-neon: 0 0 25px rgba(249, 115, 22, 0.4);
}

[data-theme="obsidian"] {
  --bg-dark: #030305;
  --bg-card: #0f0f14;
  --primary-cyan: #e2e8f0;
  --primary-purple: #94a3b8;
  --accent-pink: #ffffff;
  --accent-gradient: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #ffffff 100%);
  --border-glow: rgba(226, 232, 240, 0.5);
  --shadow-neon: 0 0 25px rgba(226, 232, 240, 0.4);
}

/* Theme Card Badge & Ribbon Overrides (Vibrant & High-Contrast) */
[data-theme="purple"] .badge-mini-hd { background: linear-gradient(135deg, #a855f7 0%, #6b21a8 100%) !important; }
[data-theme="purple"] .badge-mini-ep,
[data-theme="purple"] .card-ep-badge,
[data-theme="purple"] .blog-category-badge { background: linear-gradient(135deg, #d946ef 0%, #86198f 100%) !important; }
[data-theme="purple"] .card-ribbon { background: linear-gradient(135deg, #d946ef 0%, #7e22ce 100%) !important; }

[data-theme="emerald"] .badge-mini-hd { background: linear-gradient(135deg, #10b981 0%, #065f46 100%) !important; }
[data-theme="emerald"] .badge-mini-ep,
[data-theme="emerald"] .card-ep-badge,
[data-theme="emerald"] .blog-category-badge { background: linear-gradient(135deg, #34d399 0%, #047857 100%) !important; }
[data-theme="emerald"] .card-ribbon { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%) !important; }

[data-theme="gold"] .badge-mini-hd { background: linear-gradient(135deg, #f59e0b 0%, #92400e 100%) !important; }
[data-theme="gold"] .badge-mini-ep,
[data-theme="gold"] .card-ep-badge,
[data-theme="gold"] .blog-category-badge { background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%) !important; }
[data-theme="gold"] .card-ribbon { background: linear-gradient(135deg, #f59e0b 0%, #78350f 100%) !important; }

[data-theme="crimson"] .badge-mini-hd { background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%) !important; }
[data-theme="crimson"] .badge-mini-ep,
[data-theme="crimson"] .card-ep-badge,
[data-theme="crimson"] .blog-category-badge { background: linear-gradient(135deg, #f87171 0%, #b91c1c 100%) !important; }
[data-theme="crimson"] .card-ribbon { background: linear-gradient(135deg, #ef4444 0%, #7f1d1d 100%) !important; }

[data-theme="ocean"] .badge-mini-hd { background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important; }
[data-theme="ocean"] .badge-mini-ep,
[data-theme="ocean"] .card-ep-badge,
[data-theme="ocean"] .blog-category-badge { background: linear-gradient(135deg, #60a5fa 0%, #1d4ed8 100%) !important; }
[data-theme="ocean"] .card-ribbon { background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%) !important; }

[data-theme="sunset"] .badge-mini-hd { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%) !important; }
[data-theme="sunset"] .badge-mini-ep,
[data-theme="sunset"] .card-ep-badge,
[data-theme="sunset"] .blog-category-badge { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important; }
[data-theme="sunset"] .card-ribbon { background: linear-gradient(135deg, #f97316 0%, #ec4899 100%) !important; }

[data-theme="obsidian"] .badge-mini-hd { background: linear-gradient(135deg, #64748b 0%, #334155 100%) !important; }
[data-theme="obsidian"] .badge-mini-ep,
[data-theme="obsidian"] .card-ep-badge,
[data-theme="obsidian"] .blog-category-badge { background: linear-gradient(135deg, #94a3b8 0%, #475569 100%) !important; }
[data-theme="obsidian"] .card-ribbon { background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%) !important; color: #0f172a !important; }

/* Theme Customizer Card Grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}
.theme-card {
  background: rgba(18, 24, 38, 0.8);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-card:hover, .theme-card.active {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 20px var(--primary-cyan);
  transform: translateY(-3px);
}
.theme-color-preview {
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.cyan-preview { background: linear-gradient(135deg, #060810, #0f1422); border: 1px solid #00f2fe; }
.purple-preview { background: linear-gradient(135deg, #0d0714, #180e25); border: 1px solid #a855f7; }
.emerald-preview { background: linear-gradient(135deg, #04120e, #0a2019); border: 1px solid #10b981; }
.gold-preview { background: linear-gradient(135deg, #120e06, #221a0a); border: 1px solid #f59e0b; }
.crimson-preview { background: linear-gradient(135deg, #140507, #240a0e); border: 1px solid #ef4444; }
.ocean-preview { background: linear-gradient(135deg, #050b14, #0a172a); border: 1px solid #3b82f6; }
.sunset-preview { background: linear-gradient(135deg, #140a07, #25120c); border: 1px solid #f97316; }
.obsidian-preview { background: linear-gradient(135deg, #030305, #0f0f14); border: 1px solid #e2e8f0; }

.preview-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.cyan-preview .p1 { background: #00f2fe; }
.cyan-preview .p2 { background: #8a2be2; }
.cyan-preview .p3 { background: #ff007f; }

.purple-preview .p1 { background: #a855f7; }
.purple-preview .p2 { background: #d946ef; }
.purple-preview .p3 { background: #ec4899; }

.emerald-preview .p1 { background: #10b981; }
.emerald-preview .p2 { background: #06b6d4; }
.emerald-preview .p3 { background: #34d399; }

.gold-preview .p1 { background: #f59e0b; }
.gold-preview .p2 { background: #d97706; }
.gold-preview .p3 { background: #fbbf24; }

.crimson-preview .p1 { background: #ef4444; }
.crimson-preview .p2 { background: #b91c1c; }
.crimson-preview .p3 { background: #f87171; }

.ocean-preview .p1 { background: #3b82f6; }
.ocean-preview .p2 { background: #1d4ed8; }
.ocean-preview .p3 { background: #60a5fa; }

.sunset-preview .p1 { background: #f97316; }
.sunset-preview .p2 { background: #ec4899; }
.sunset-preview .p3 { background: #eab308; }

.obsidian-preview .p1 { background: #e2e8f0; }
.obsidian-preview .p2 { background: #94a3b8; }
.obsidian-preview .p3 { background: #ffffff; }

.theme-card-info h4 {
  font-size: 0.96rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.theme-card-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-khmer);
  -webkit-font-smoothing: antialiased;
}

/* Core Form Control & Button Reset to prevent unstyled browser defaults */
button, input, select, textarea {
  font-family: inherit;
  box-sizing: border-box;
}

button {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #262c40;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-purple);
}

/* Animated Ambient Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: floatAmbient 12s infinite alternate ease-in-out;
  transition: background 1.5s ease-in-out, opacity 1.5s ease-in-out;
}
.ambient-1 {
  top: -100px;
  left: -100px;
  width: 450px;
  height: 450px;
  background: rgba(168, 85, 247, 0.25);
}
.ambient-2 {
  bottom: 10%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: rgba(6, 182, 212, 0.2);
  animation-delay: -6s;
}

/* Dynamic Adaptive Ambient Glow Engine */
:root {
  --movie-ambient-color: rgba(6, 182, 212, 0.45);
  --movie-ambient-color-solid: #06b6d4;
}

#videoIframeWrapper {
  position: relative;
  transition: box-shadow 1s ease-in-out;
  box-shadow: 0 0 50px var(--movie-ambient-color), 0 15px 40px rgba(0, 0, 0, 0.8);
  animation: pulseAmbientGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseAmbientGlow {
  0% {
    box-shadow: 0 0 35px var(--movie-ambient-color), 0 15px 40px rgba(0, 0, 0, 0.85);
  }
  50% {
    box-shadow: 0 0 70px var(--movie-ambient-color), 0 0 110px var(--movie-ambient-color), 0 15px 50px rgba(0, 0, 0, 0.95);
  }
  100% {
    box-shadow: 0 0 45px var(--movie-ambient-color), 0 15px 40px rgba(0, 0, 0, 0.85);
  }
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Utility Layout */
main.container {
  padding-top: 100px;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 0;
  transition: var(--smooth);
}
.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Animated Logo & Text Effects */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: -0.5px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.brand-logo:hover {
  transform: translateY(-2px);
}

.animated-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: none !important;
  transition: transform 0.3s ease;
  animation: none !important;
}

.brand-logo:hover .animated-logo-img {
  transform: scale(1.05);
  box-shadow: none !important;
  filter: none !important;
}

.brand-text {
  font-family: 'Outfit', 'Inter', var(--font-latin), sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 0.1rem 0;
}

.brand-text .text-phorn {
  background: linear-gradient(135deg, #ffffff 0%, #06b6d4 50%, #a855f7 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoTextGradientShift 4s ease infinite;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

.brand-text .text-movies {
  background: linear-gradient(135deg, #06b6d4 0%, #ec4899 50%, #a855f7 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoTextGradientShift 3s ease infinite reverse;
  font-weight: 900;
  margin-left: 1px;
  filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.5));
}

@keyframes logoTextGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Light Shimmer Effect across Logo Text */
.brand-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  transform: skewX(-20deg);
  animation: logoTextShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logoTextShimmer {
  0%, 65% { left: -100%; }
  100% { left: 200%; }
}

/* Animated Navigation Bar & Menu Pill System */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  background: rgba(18, 24, 38, 0.65);
  padding: 0.35rem 0.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 20px rgba(6, 182, 212, 0.15);
  position: relative;
  transition: all 0.4s ease;
  flex-shrink: 1;
}

.nav-menu:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 30px rgba(168, 85, 247, 0.25);
}

.nav-link {
  color: #a0aec0;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap; /* Prevent vertical line wrapping overlapping header */
}

.nav-link i {
  font-size: 0.95rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect on Nav Link */
.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link:hover i {
  transform: scale(1.2) rotate(-5deg);
  color: #06b6d4;
}

/* Active Nav Pill with Animated Neon Gradient & Pulse */
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 50%, #ec4899 100%);
  background-size: 200% 200%;
  animation: activePillGradient 4s ease infinite;
  box-shadow: 
    0 0 20px rgba(6, 182, 212, 0.6),
    0 0 35px rgba(168, 85, 247, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 700;
  transform: scale(1.02);
}

.nav-link.active i {
  color: #ffffff;
  animation: activeIconBounce 2s ease-in-out infinite alternate;
}

@keyframes activePillGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes activeIconBounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-2px) scale(1.15); }
}

/* Light Sweep Effect on Nav Link Hover */
.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

/* Header Actions Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.search-trigger-btn {
  background: rgba(18, 24, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a0aec0;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.search-trigger-btn i {
  color: #06b6d4;
  transition: transform 0.3s ease;
}

.search-trigger-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.03);
}

.search-trigger-btn:hover i {
  transform: scale(1.25) rotate(-10deg);
  color: #ffffff;
}

.btn-bookmark-toggle {
  position: relative;
  background: rgba(18, 24, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-bookmark-toggle i {
  color: #ec4899;
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.btn-bookmark-toggle:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: #ec4899;
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-bookmark-toggle:hover i {
  color: #ffffff;
  transform: scale(1.2);
}

.badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: linear-gradient(135deg, #ec4899, #ff416c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0b0e17;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.8);
  animation: badgePulsePing 2s infinite;
}

@keyframes badgePulsePing {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(236, 72, 153, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
  }
}

.btn-vip {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--bounce);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-neon);
}
.btn-vip:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
}

/* Admin Post Form Styling */
.admin-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--smooth);
}
.form-input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  background: rgba(255, 255, 255, 0.08);
}
select.form-input option {
  background: var(--bg-card);
  color: #fff;
}
.btn-submit-post {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--bounce);
  box-shadow: var(--shadow-neon);
  margin-top: 0.5rem;
}
.btn-submit-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.7);
}

/* Telegram Community Banner */
.telegram-banner {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(10px);
}
.telegram-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.telegram-icon {
  width: 45px;
  height: 45px;
  background: #0088cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
  animation: pulseTg 2s infinite ease-in-out;
}
@keyframes pulseTg {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.telegram-text h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.1rem;
}
.telegram-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.telegram-btn-group {
  display: flex;
  gap: 0.8rem;
}
.btn-tg-join {
  background: #0088cc;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--smooth);
}
.btn-tg-join:hover {
  background: #0099e6;
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.6);
  transform: translateY(-2px);
}
.btn-tg-share {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--smooth);
}
.btn-tg-share:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Dynamic Hero Slider */
.hero-slider-section {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 3rem;
  min-height: 540px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.03);
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, #080a11 0%, rgba(8, 10, 17, 0.85) 45%, transparent 100%),
    linear-gradient(0deg, #080a11 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3.5rem;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.badge {
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-hd {
  background: #3b82f6;
  color: #fff;
}
.badge-khmer {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}
.badge-rating {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.badge-year {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  font-family: var(--font-khmer);
}
.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.btn-play-now {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--bounce);
  box-shadow: var(--shadow-neon);
}
.btn-play-now:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.7);
}

.btn-add-list {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(10px);
  transition: var(--smooth);
}
.btn-add-list:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--primary-purple);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 22, 36, 0.7);
  border: 1px solid var(--border-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--smooth);
}
.slider-btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: var(--shadow-neon);
  transform: scale(1.1);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
}
.section-title::before {
  content: '';
  width: 5px;
  height: 24px;
  background: var(--accent-gradient);
  border-radius: 4px;
  box-shadow: var(--shadow-neon);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--smooth);
}
.tab-btn.active, .tab-btn:hover {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* Movie Card Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

/* Five-Column Grid for Home Sections (Newly Posted, Trending, Continue) */
.five-col-grid {
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .five-col-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 840px) {
  .five-col-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 560px) {
  .five-col-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Movie Card Styling */
.movie-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.movie-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-purple);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.3);
}

.card-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1a1e2e;
}
.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.movie-card:hover .card-poster {
  transform: scale(1.08);
}

/* Corner Ribbons & Badges System */
.card-badges-top {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  z-index: 4;
  pointer-events: none;
}

.badge-mini {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.badge-mini-hd {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, #0284c7 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-mini-ep {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-mini-status {
  background: linear-gradient(135deg, var(--accent-pink) 0%, #be185d 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Bottom Left Episode Badge on Card Poster */
.card-ep-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-ribbon {
  position: absolute;
  top: 15px;
  right: -34px;
  transform: rotate(45deg);
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 36px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 4;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Card Saved Bookmark Icon Indicator (Bottom Right Corner - No Overlap) */
.card-saved-bookmark-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 5;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  animation: badgePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.btn-remove-bookmark-card {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 6;
  transition: all 0.25s ease;
}
.btn-remove-bookmark-card:hover {
  background: #ef4444;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.7);
}

/* Detail Poster Bookmark Ribbon Overlay */
.detail-poster-wrapper {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.poster-bookmark-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 
    0 0 20px rgba(16, 185, 129, 0.8),
    0 4px 15px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  z-index: 6;
  opacity: 0;
  transform: translateY(-10px) scale(0.85);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.poster-bookmark-badge.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Card Hover Overlay Play Icon */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 17, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  opacity: 0;
  transition: var(--smooth);
  z-index: 2;
}
.movie-card:hover .card-overlay {
  opacity: 1;
}
.play-btn-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-neon);
  transform: scale(0.7);
  transition: var(--bounce);
}
.movie-card:hover .play-btn-circle {
  transform: scale(1);
}

/* Card Content Info */
.card-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--smooth);
}
.movie-card:hover .card-title {
  color: var(--primary-cyan);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-meta-ep {
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.74rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
}
.card-rating {
  color: #fbbf24;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

/* Continue Watching Progress */
.continue-card {
  position: relative;
}
.progress-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 4;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-cyan);
}

/* Futuristic Floating Pill Pagination Bar */
.pagination-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem auto 4rem auto;
  padding: 0.45rem 1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.page-numbers-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.page-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.page-btn.active {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #38bdf8 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.7), 0 0 35px rgba(139, 92, 246, 0.5) !important;
  transform: scale(1.1) !important;
}

.page-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.page-nav-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.page-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
  color: #64748b;
}

.page-indicator-badge {
  font-size: 0.82rem;
  color: #94a3b8;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-left: 0.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.page-indicator-badge strong {
  color: #38bdf8;
  font-weight: 800;
}

/* Video Player Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 10, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--smooth);
  padding: 1.5rem;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.player-modal-container {
  width: 100%;
  max-width: 1100px;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-neon);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: var(--bounce);
}
.modal-overlay.active .player-modal-container {
  transform: scale(1);
}

/* Full-Page Cinematic Tab Watch View */
#pageView_watch {
  width: 100%;
}

.watch-tab-cinema-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.watch-tab-header {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-back-tab {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
}

.btn-back-tab .btn-back-text {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-left 0.3s ease;
}

.btn-back-tab:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  padding: 0.55rem 1.15rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
  transform: translateX(-2px);
}

.btn-back-tab:hover .btn-back-text {
  max-width: 180px;
  opacity: 1;
  margin-left: 0.5rem;
}

.watch-tab-cinema-wrapper .cinema-player-layout {
  max-height: none !important;
  overflow-y: visible !important;
  padding: 1.5rem;
}

/* Widescreen Cinema Theater Modal Layout */
.cinema-widescreen-modal {
  max-width: 1440px !important;
  width: 95vw !important;
  max-height: 94vh !important;
}

.cinema-player-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(94vh - 75px);
}

.cinema-left-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.player-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  gap: 1rem;
}

/* Real-time Live Viewers Ticker Badge Styling */
.live-viewers-ticker-badge {
  background: linear-gradient(135deg, rgba(255, 65, 108, 0.15), rgba(255, 75, 43, 0.15));
  border: 1px solid rgba(255, 65, 108, 0.35);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 65, 108, 0.2);
  transition: all 0.3s ease;
}

.flame-anim {
  font-size: 1rem;
  animation: flameFlicker 1.5s infinite alternate ease-in-out;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-3deg); filter: drop-shadow(0 0 6px #ff416c); }
  50% { transform: scale(1.15) rotate(3deg); filter: drop-shadow(0 0 12px #ff4b2b); }
  100% { transform: scale(1.05) rotate(-2deg); filter: drop-shadow(0 0 8px #ff416c); }
}

.ticker-text strong {
  color: #ff416c;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-meta-report {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--bounce);
  white-space: nowrap;
}

.btn-meta-report:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-toggle-episodes {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--bounce);
  white-space: nowrap;
}
.btn-toggle-episodes:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--primary-purple);
  color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.cinema-player-layout {
  transition: all 0.3s ease;
}

.cinema-player-layout.episodes-hidden {
  grid-template-columns: 1fr 0px !important;
  gap: 0 !important;
}
.cinema-player-layout.episodes-hidden .cinema-right-col {
  display: none !important;
}

.cinema-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 0;
}

.synopsis-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: 16px;
}
.synopsis-box h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.synopsis-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
}

/* Movie Details Header Card (Ultra Modern Glassmorphic Design) */
.movie-detail-card-hero {
  display: flex;
  gap: 2rem;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 24px;
  padding: 1.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 30px rgba(6, 182, 212, 0.15);
  transition: all 0.4s ease;
}

.cinema-right-col .movie-detail-card-hero {
  gap: 0.85rem;
  padding: 0.95rem;
  border-radius: 18px;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.movie-detail-card-hero:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 40px rgba(168, 85, 247, 0.2);
}

.detail-poster-col {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.cinema-right-col .detail-poster-col {
  width: 105px;
  min-width: 105px;
}

.cinema-right-col .detail-poster {
  height: 155px;
  border-radius: 12px;
}

.cinema-right-col .btn-add-watchlist {
  margin-top: 0.5rem;
  padding: 0.45rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 8px;
  gap: 0.3rem;
  white-space: nowrap;
}

.cinema-right-col .detail-info-col {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  gap: 0.45rem;
  overflow: hidden;
}

.cinema-right-col .detail-info-col h2 {
  font-size: 1.05rem;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  margin: 0;
}

.cinema-right-col .detail-badges-row {
  gap: 0.3rem;
  flex-wrap: wrap;
}

.cinema-right-col .badge-rating,
.cinema-right-col .badge-quality,
.cinema-right-col .badge-views {
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  border-radius: 6px;
}

.cinema-right-col .detail-meta-grid {
  padding: 0.55rem 0.7rem;
  gap: 0.3rem;
  font-size: 0.78rem;
  border-radius: 12px;
  box-sizing: border-box;
  width: 100%;
}

.cinema-right-col .meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding-bottom: 0.3rem;
}

.cinema-right-col .meta-label {
  width: 58px;
  min-width: 58px;
  font-size: 0.76rem;
}

.cinema-right-col .meta-val {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 0.78rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cinema-right-col #detailCastText {
  justify-content: flex-end;
  gap: 0.25rem;
}

.cinema-right-col #detailCastText span {
  padding: 0.15rem 0.38rem !important;
  font-size: 0.7rem !important;
  border-radius: 8px !important;
}

.detail-poster {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(6, 182, 212, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.detail-poster-col:hover .detail-poster {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(236, 72, 153, 0.5);
}

/* Animated Vibrant Green Watchlist / Bookmark Button */
.btn-add-watchlist {
  margin-top: 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 0 20px rgba(16, 185, 129, 0.5),
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-add-watchlist i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-add-watchlist:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 0 30px rgba(52, 211, 153, 0.8),
    0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-add-watchlist:hover i {
  transform: scale(1.25) rotate(-10deg);
}

.btn-add-watchlist::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.btn-add-watchlist:hover::after {
  left: 100%;
}

.detail-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.detail-info-col h2 {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.3));
}

.detail-badges-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Glowing Neon Badges */
.badge-rating {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.badge-rating i {
  color: #ffffff !important;
  font-size: 0.9em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.badge-quality {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  letter-spacing: 0.5px;
}
.badge-views {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.4rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.meta-row {
  display: flex;
  align-items: center;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.meta-label {
  width: 120px;
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 600;
}
.meta-val {
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 700;
}
.meta-val.link-val {
  color: #38bdf8;
  cursor: pointer;
  transition: color 0.2s ease;
}
.meta-val.link-val:hover {
  color: #a855f7;
  text-decoration: underline;
}
.meta-val.status-badge {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Full Movie Catalog Grid Layout (Compact 5-column grid) */
.catalog-grid-layout {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.catalog-grid-layout .movie-card {
  margin: 0;
  border-radius: 14px;
  background: rgba(18, 24, 38, 0.8);
}
.catalog-grid-layout .card-poster-wrapper {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.catalog-grid-layout .card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .catalog-grid-layout {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 850px) {
  .catalog-grid-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 580px) {
  .catalog-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Recommended Movies Section ("អ្នកក៏អាចចូលចិត្ត") Compact Grid Layout */
.recommended-section-block {
  margin-top: 1.2rem;
}
.recommended-movies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.recommended-movies-grid .movie-card {
  margin: 0;
  border-radius: 12px;
  background: rgba(18, 24, 38, 0.8);
}
.recommended-movies-grid .card-poster-wrapper {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.recommended-movies-grid .card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommended-movies-grid .card-info {
  padding: 0.6rem 0.75rem;
}
.recommended-movies-grid .card-title {
  font-size: 0.85rem;
}
.recommended-movies-grid .card-meta {
  font-size: 0.75rem;
}

@media (max-width: 1100px) {
  .recommended-movies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .recommended-movies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Synopsis Section Block with Glowing Animated Indicator Bar */
.synopsis-section-block {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.cinema-right-col .synopsis-section-block {
  padding: 1.2rem;
  gap: 0.75rem;
}

/* Keyboard Shortcuts Cheat Sheet Modal Styling */
.shortcuts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  transition: all 0.25s ease;
}

.shortcut-row:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateX(4px);
}

.shortcut-label {
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
}

.shortcut-keys {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

kbd {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Watch Party Live Sync Styling */
.watch-party-banner {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
  border-bottom: 1px solid rgba(236, 72, 153, 0.35);
  padding: 0.75rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(15px);
  animation: bannerFadeIn 0.3s ease;
}

.wp-banner-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.wp-live-badge {
  background: linear-gradient(135deg, #ef4444, #ec4899);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: badgePulsePing 1.5s infinite;
}

.wp-room-code {
  color: #f1f5f9;
  font-size: 0.9rem;
}

.wp-room-code strong {
  color: var(--primary-cyan);
  letter-spacing: 1px;
}

.wp-user-count {
  color: #a0aec0;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wp-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-wp-copy-link {
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--smooth);
}

.btn-wp-copy-link:hover {
  background: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.btn-wp-leave {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--smooth);
}

.btn-wp-leave:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* Watch Party Live Chat Box Styling */
.wp-chat-card {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 20px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(236, 72, 153, 0.15);
  animation: bannerFadeIn 0.3s ease;
}

.wp-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-chat-header h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wp-chat-online-badge {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #ec4899;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wp-chat-messages {
  max-height: 220px;
  min-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-right: 0.3rem;
}

.wp-chat-messages::-webkit-scrollbar {
  width: 5px;
}
.wp-chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ec4899, #a855f7);
  border-radius: 4px;
}

.wp-chat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  animation: fadeInMsg 0.25s ease;
}

.wp-chat-item.own-msg {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  align-self: flex-end;
  max-width: 90%;
}

.wp-chat-sender {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-cyan);
}

.wp-chat-item.own-msg .wp-chat-sender {
  color: #ec4899;
}

.wp-chat-text {
  font-size: 0.88rem;
  color: #f1f5f9;
  line-height: 1.4;
  word-break: break-word;
}

.wp-system-msg {
  font-size: 0.8rem;
  color: #a0aec0;
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  font-style: italic;
}

.wp-chat-input-group {
  display: flex;
  gap: 0.5rem;
}

.synopsis-section-block:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(6, 182, 212, 0.2);
}

.synopsis-title-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.green-indicator-bar {
  width: 5px;
  height: 22px;
  background: linear-gradient(180deg, #10b981 0%, #06b6d4 100%);
  border-radius: 4px;
  box-shadow: 
    0 0 15px rgba(16, 185, 129, 0.8),
    0 0 25px rgba(6, 182, 212, 0.6);
  animation: indicatorGlowPulse 2.5s infinite alternate ease-in-out;
}

@keyframes indicatorGlowPulse {
  0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.9), 0 0 30px rgba(168, 85, 247, 0.6); }
}

.synopsis-title-header h3 {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.synopsis-desc-text {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--smooth);
}
.synopsis-desc-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
}

/* Glowing Read More Button ("មើលបន្ថែម ∨") */
.btn-read-more {
  align-self: flex-start;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 0 15px rgba(16, 185, 129, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-read-more i {
  transition: transform 0.3s ease;
}

.btn-read-more:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.7);
}

.btn-read-more:hover i {
  transform: translateY(2px) scale(1.2);
}

/* ===== Unified Engagement Tabs Hub (Comments | Rating & Reactions) ===== */
.engagement-tabs-card {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.engagement-tabs-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(168, 85, 247, 0.15);
}

.engagement-tab-nav-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
}

.eng-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.5rem 1.15rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.eng-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.eng-nav-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.2));
  border-color: var(--primary-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.eng-nav-badge {
  background: rgba(118, 240, 100, 0.2);
  color: #76f064;
  border: 1px solid rgba(118, 240, 100, 0.4);
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

.eng-nav-rating-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
}

.eng-tab-pane {
  animation: fadeIn 0.25s ease;
}

/* Rating & Reactions Card (Glassmorphic Design) */
.rating-reaction-card {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.rating-reaction-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(168, 85, 247, 0.2);
}

.rating-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}
.rating-header h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}
.rating-num {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
}
.stars-row {
  display: flex;
  gap: 0.5rem;
}
.stars-row i {
  font-size: 1.5rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stars-row i.active,
.stars-row i:hover {
  color: #f59e0b;
  transform: scale(1.25) rotate(8deg);
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.8));
}

.reaction-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.reaction-label {
  font-size: 0.92rem;
  color: #94a3b8;
  font-weight: 600;
}
.reaction-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Glowing Neon Reaction Pills */
.pill-react {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.pill-react:hover {
  background: rgba(236, 72, 153, 0.18);
  border-color: #ec4899;
  color: #ffffff;
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}
.pill-react.active {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.7);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .movie-detail-card-hero {
    flex-direction: column;
  }
  .detail-poster-col {
    width: 100%;
  }
  .reaction-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

.episodes-section-side {
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 1.4rem;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex: none;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ep-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ep-side-header h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ep-side-header h4 i {
  color: #06b6d4;
  font-size: 1.1rem;
}
.ep-count-badge {
  font-size: 0.82rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.2));
  color: #06b6d4;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.episodes-grid-side {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

/* Custom scrollbar for side layout */
.cinema-player-layout::-webkit-scrollbar,
.episodes-grid-side::-webkit-scrollbar,
.synopsis-box p::-webkit-scrollbar {
  width: 6px;
}
.episodes-grid-side::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #06b6d4, #a855f7);
  border-radius: 4px;
}

@media (max-width: 1100px) {
  .cinema-player-layout {
    grid-template-columns: 1fr;
  }
}

.modal-header {
  padding: 1.2rem 1.8rem;
  background: rgba(18, 24, 38, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title-group h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}
.modal-title-group p {
  font-size: 0.88rem;
  color: #94a3b8;
}
.btn-close-modal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.btn-close-modal:hover {
  background: linear-gradient(135deg, #ec4899, #ef4444);
  color: #ffffff;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
}

.modal-body {
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Video Player Frame Container */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(6, 182, 212, 0.25);
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.video-wrapper iframe, .video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
}

/* Controls & Episodes grid inside modal */
.player-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.server-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.server-title {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 600;
}
.btn-server {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-server.active, .btn-server:hover {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.episodes-section h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 0.65rem;
  max-height: 170px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

/* Modern Glowing Episode Buttons */
.ep-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ep-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* 🔥 Prominent Glowing Active Playing Episode */
.ep-btn.active {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #38bdf8 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.8), 0 0 35px rgba(139, 92, 246, 0.5) !important;
  transform: scale(1.06) !important;
  z-index: 3;
}

.ep-btn.active .ep-now-playing-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #ffffff;
  color: #0b0d12;
  border-radius: 50%;
  font-size: 0.6rem;
  animation: pulsePlayIcon 1.5s infinite ease-in-out;
}

@keyframes pulsePlayIcon {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
}

/* Watched Episode (Distinct Subdued Green Checkmark) */
.ep-btn.watched {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.ep-btn.watched .ep-check-mark {
  color: #22c55e;
  font-weight: 800;
  font-size: 0.85rem;
}
.ep-btn.watched:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

/* Search Modal Overlay */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 8, 15, 0.92);
  backdrop-filter: blur(20px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1.5rem;
}
.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-box-container {
  width: 100%;
  max-width: 720px;
  position: relative;
  margin-bottom: 2rem;
}
.search-input-lg {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--primary-purple);
  padding: 1.2rem 1.5rem 1.2rem 3.5rem;
  border-radius: 40px;
  color: #fff;
  font-size: 1.2rem;
  outline: none;
  box-shadow: var(--shadow-neon);
}
.search-icon-lg {
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-purple);
  font-size: 1.3rem;
}
.search-results-area {
  width: 100%;
  max-width: 1100px;
  overflow-y: auto;
}

/* Push Notification Bar (Matching Screenshot 100%) */
.push-notif-bar {
  margin: 0.75rem;
  padding: 0.85rem 1.2rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.push-notif-bar:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: #4ade80;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}
.push-notif-icon {
  font-size: 1.35rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
}
.push-notif-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: -0.2px;
  flex: 1;
}
.push-notif-badge {
  background: #22c55e;
  color: #0b0e14;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 800;
}

/* Animated Bell Circle Wrapper & Glow Effects */
.push-bell-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, rgba(16, 185, 129, 0.1) 70%);
  border: 1px solid rgba(74, 222, 128, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5), 0 0 25px rgba(34, 197, 94, 0.3);
  animation: bellCirclePulse 2.5s infinite ease-in-out;
}

@keyframes bellCirclePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 22px rgba(74, 222, 128, 0.8), 0 0 35px rgba(16, 185, 129, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
  }
}

.push-bell-anim {
  font-size: 1.3rem;
  color: #4ade80;
  animation: bellSwing 2s infinite ease-in-out;
  filter: drop-shadow(0 0 6px #4ade80);
}

@keyframes bellSwing {
  0%, 100% { transform: rotate(0) scale(1); }
  10% { transform: rotate(18deg) scale(1.15); }
  20% { transform: rotate(-18deg) scale(1.15); }
  30% { transform: rotate(12deg) scale(1.1); }
  40% { transform: rotate(-12deg) scale(1.1); }
  50% { transform: rotate(0) scale(1); }
}

/* Push Notification Main Banner on Homepage */
.push-notif-banner-main {
  position: relative;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 20px;
  padding: 0.9rem 1.4rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(10px);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.35s ease;
}

.push-notif-banner-main::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.25), transparent);
  transform: skewX(-20deg);
  animation: bannerShimmer 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes bannerShimmer {
  0%, 60% { left: -100%; }
  100% { left: 200%; }
}

.push-notif-banner-main:hover {
  border-color: #4ade80;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
}
.push-notif-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.push-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}
.btn-push-enable {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
  transition: all 0.25s ease;
}
.btn-push-enable:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.7);
}

/* Notification Dropdown Styling */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 330px;
  background: #0f172a;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.2);
  z-index: 1000;
  display: none;
  overflow: hidden;
  animation: dropdownIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.notification-dropdown.active {
  display: block;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.notif-header {
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notif-list {
  max-height: 280px;
  overflow-y: auto;
}
.notif-item {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.2s ease;
}
.notif-item:hover {
  background: rgba(0, 242, 254, 0.08);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-thumb {
  width: 38px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.notif-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.notif-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}
.notif-time {
  font-size: 0.7rem;
  color: var(--primary-cyan);
  margin-top: 0.2rem;
  font-weight: 600;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--primary-purple);
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-neon);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideToast 0.4s var(--bounce);
}
@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Cinema Mode Overlay */
.cinema-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1005;
  opacity: 0;
  visibility: hidden;
  transition: var(--smooth);
}
.cinema-overlay.active {
  opacity: 1;
  visibility: visible;
}
#playerModal.cinema-active {
  z-index: 1010;
}
#playerModal.cinema-active .modal-header,
#playerModal.cinema-active .player-controls-panel {
  opacity: 0.2;
  transition: opacity 0.3s ease;
}
#playerModal.cinema-active:hover .modal-header,
#playerModal.cinema-active:hover .player-controls-panel {
  opacity: 1;
}

/* Modal Actions Header */
.modal-actions-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-action-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--smooth);
}
.btn-action-tool:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--primary-purple);
  color: #fff;
}

/* Genre Filter Tags */
.genre-tags-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.genre-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--smooth);
}
.genre-tag:hover,
.genre-tag.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

/* Comments & Reactions Section */
.comments-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.comments-section h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.reaction-buttons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.reaction-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--bounce);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.reaction-btn:hover {
  transform: scale(1.1);
  border-color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.15);
}
.comment-input-group {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.btn-submit-comment {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 0 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--smooth);
}
.btn-submit-comment:hover {
  box-shadow: var(--shadow-cyan);
  transform: translateY(-1px);
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.comment-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.7rem 1rem;
  border-radius: 12px;
}
.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.comment-user {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-cyan);
}
.comment-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.comment-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.4;
}

/* Scrollbar & Overflow for Admin Modal Contents */
#adminTabAddContent,
#adminTabManageContent {
  max-height: calc(80vh - 140px);
  overflow-y: auto;
  padding: 1.2rem 1.5rem;
  padding-right: 0.8rem;
}
#adminTabAddContent .admin-form {
  padding: 0;
}

/* Custom Electric Neon Scrollbar */
#adminTabAddContent::-webkit-scrollbar,
#adminTabManageContent::-webkit-scrollbar,
#adminMovieListContainer::-webkit-scrollbar,
.comments-list::-webkit-scrollbar,
.episodes-grid::-webkit-scrollbar {
  width: 8px;
}

#adminTabAddContent::-webkit-scrollbar-track,
#adminTabManageContent::-webkit-scrollbar-track,
#adminMovieListContainer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

#adminTabAddContent::-webkit-scrollbar-thumb,
#adminTabManageContent::-webkit-scrollbar-thumb,
#adminMovieListContainer::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

#adminTabAddContent::-webkit-scrollbar-thumb:hover,
#adminTabManageContent::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c084fc 0%, #22d3ee 100%);
}

/* Admin Tabs & Management */
.admin-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}
.admin-tab-btn {
  flex: 1;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.manage-movie-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.6rem;
}
.manage-movie-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-color);
  padding: 1rem 1.2rem;
  border-radius: 16px;
  gap: 1.2rem;
  transition: var(--smooth);
}
.manage-movie-item:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(6, 182, 212, 0.08) 100%);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.manage-movie-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
}
.manage-poster {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: var(--smooth);
}
.manage-movie-item:hover .manage-poster {
  border-color: var(--primary-cyan);
  transform: scale(1.05);
}
.manage-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.manage-title-group h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.manage-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.manage-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}
.tag-cat {
  background: rgba(168, 85, 247, 0.18);
  color: var(--primary-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.tag-year {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.tag-ep {
  background: rgba(6, 182, 212, 0.18);
  color: var(--primary-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.manage-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-add-ep {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 0.6rem 1.1rem !important;
  border-radius: 20px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: var(--bounce);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.45) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.btn-add-ep i {
  color: #ffffff !important;
  background: transparent !important;
}
.btn-add-ep:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.7) !important;
}

.btn-delete-movie {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
  padding: 0.6rem 1rem !important;
  border-radius: 20px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: var(--smooth);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  white-space: nowrap !important;
}
.btn-delete-movie i {
  color: #f87171 !important;
  background: transparent !important;
}
.btn-delete-movie:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.6) !important;
  transform: scale(1.06) !important;
}
.btn-delete-movie:hover i {
  color: #ffffff !important;
}

/* Mobile Toggle */
.btn-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Footer Styling */
.site-footer {
  background: #05060b;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
}
.footer-links h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  position: relative;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--smooth);
}
.footer-links a:hover {
  color: var(--primary-cyan);
  padding-left: 5px;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.8rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Movie News & Reviews Blog Grid Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.blog-card {
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.25);
}

.blog-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.blog-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.blog-card-title {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--primary-cyan);
}

.blog-card-snippet {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-read-more-link {
  font-size: 0.84rem;
  color: var(--primary-cyan);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-read-more-link {
  gap: 0.7rem;
  color: #38bdf8;
}

/* Legal Modals Styling */
.legal-modal-body h4 {
  border-left: 3px solid var(--primary-cyan);
  padding-left: 0.6rem;
}

/* Ultra Modern Custom File Upload Dropzone Box */
.custom-file-upload-box {
  position: relative;
  width: 100%;
}

.file-upload-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  background: rgba(18, 24, 38, 0.7);
  border: 2px dashed rgba(6, 182, 212, 0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.custom-file-upload-box:hover .file-upload-label {
  border-color: var(--primary-cyan);
  border-style: solid;
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.video-upload-box .file-upload-label {
  border-color: rgba(168, 85, 247, 0.4);
}

.video-upload-box:hover .file-upload-label {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.3);
}

.upload-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-cyan);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.video-circle {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  border-color: rgba(168, 85, 247, 0.4);
  color: #a855f7;
}

.custom-file-upload-box:hover .upload-icon-circle {
  transform: scale(1.1) rotate(-5deg);
}

.upload-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.upload-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.upload-sub {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Recommended Articles Card Hover Effects */
.recommended-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.5) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.25);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-content {
    padding: 3rem 2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .btn-mobile-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-card);
  }
  .nav-menu.active {
    display: flex;
  }
  .hero-slider-section {
    min-height: 460px;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .tool-label {
    display: none;
  }
}

/* ==========================================================================
   PhornMovies VIP Design System - Glassmorphism, Neon Glow & Animations
   ========================================================================== */

.site-header {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* Glassmorphism Movie Cards with Neon Glow & Smooth Elevate */
.movie-card {
  background: rgba(17, 21, 34, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 18px !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.movie-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: 0.6s ease;
  z-index: 5;
  pointer-events: none;
}

.movie-card:hover::before {
  left: 100%;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: var(--primary-cyan) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 28px rgba(6, 182, 212, 0.35) !important;
}

.movie-card:hover .card-poster {
  transform: scale(1.09) !important;
  filter: brightness(1.08) !important;
}

.card-poster {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease !important;
}

.play-btn-circle {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}

.movie-card:hover .play-btn-circle {
  transform: scale(1.18) !important;
  box-shadow: 0 0 25px var(--primary-cyan) !important;
}

/* Modals VIP Glassmorphic Overlays */
.player-modal-container,
.search-modal,
.theme-modal {
  background: rgba(11, 15, 25, 0.88) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(168, 85, 247, 0.25) !important;
}

/* ==========================================================================
   VIP Mini Player / Floating Picture-in-Picture Mode Styling
   ========================================================================== */
.modal-overlay.is-mini-player {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  pointer-events: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 999999 !important;
  padding: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
}

.modal-overlay.is-mini-player .player-modal-container {
  width: 380px !important;
  max-width: 92vw !important;
  margin: 0 24px 24px 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  background: rgba(11, 15, 25, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 2px solid var(--primary-cyan) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.88), 0 0 35px rgba(6, 182, 212, 0.45) !important;
  animation: miniPlayerBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  overflow: hidden !important;
  max-height: calc(100vh - 40px) !important;
}

@keyframes miniPlayerBounce {
  0% { transform: scale(0.5) translateY(120px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-overlay.is-mini-player .modal-header {
  padding: 0.65rem 1rem !important;
  background: rgba(17, 21, 34, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  cursor: grab !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.modal-overlay.is-mini-player .modal-header:active {
  cursor: grabbing !important;
}

.modal-overlay.is-mini-player .modal-header h3 {
  font-size: 0.88rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 170px !important;
}

.modal-overlay.is-mini-player .modal-header p,
.modal-overlay.is-mini-player .modal-actions-right .btn-action-tool:not(#btnMiniPlayerToggle),
.modal-overlay.is-mini-player .cinema-left-col > *:not(#videoIframeWrapper),
.modal-overlay.is-mini-player .cinema-right-col {
  display: none !important;
}

.modal-overlay.is-mini-player .cinema-player-layout {
  display: block !important;
  padding: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

.modal-overlay.is-mini-player .video-wrapper {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  aspect-ratio: 16 / 9 !important;
}

.modal-overlay.is-mini-player #btnMiniPlayerToggle {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0.35rem 0.75rem !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.6) !important;
  border-radius: 20px !important;
}

/* Emoji Chips Shortcuts */
.emoji-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  user-select: none;
}

.emoji-chip:hover {
  transform: scale(1.25);
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--primary-cyan);
}

/* Social Share Buttons in Modal */
.btn-share-social {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.telegram-btn {
  background: linear-gradient(135deg, #0088cc 0%, #00a8ff 100%);
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.facebook-btn {
  background: linear-gradient(135deg, #1877f2 0%, #3b5998 100%);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.btn-share-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Auto Next Episode Countdown Overlay (VIP Streaming Style) */
.auto-next-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 17, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 16px;
  animation: fadeIn 0.4s ease;
}

.auto-next-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 480px;
  gap: 1.2rem;
}

.countdown-circle {
  position: relative;
  width: 90px;
  height: 90px;
}

.countdown-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.circle-bar {
  fill: none;
  stroke: var(--primary-cyan);
  stroke-width: 8;
  stroke-dasharray: 276;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  stroke-linecap: round;
}

.countdown-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-latin);
}

.auto-next-badge {
  font-size: 0.85rem;
  color: var(--primary-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.auto-next-title {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.4;
}

.auto-next-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
  width: 100%;
}

.btn-next-now {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  transition: transform 0.2s ease;
}

.btn-next-now:hover {
  transform: translateY(-2px);
}

.btn-cancel-next {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-cancel-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-card-trailer-badge {
  display: none !important;
}

.btn-card-overlay-trailer {
  margin-top: 0 !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(6, 182, 212, 0.95)) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  padding: 0.42rem 0.95rem !important;
  border-radius: 20px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.6) !important;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
}

.btn-card-overlay-trailer:hover {
  transform: scale(1.08) !important;
  background: linear-gradient(135deg, #a855f7, #ec4899) !important;
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.9) !important;
}

/* PhornAI Assistant Floating Widget Styling */
.phorn-ai-trigger-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: auto;
  z-index: 999;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #06b6d4 100%);
  background-size: 200% 200%;
  animation: activePillGradient 4s ease infinite;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  height: 52px;
  min-width: 52px;
  padding: 0 0.95rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 10px 30px rgba(168, 85, 247, 0.5),
    0 0 25px rgba(236, 72, 153, 0.4);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-robot-anim {
  font-size: 1.35rem;
  animation: robotBounce 2s infinite alternate ease-in-out;
  flex-shrink: 0;
}

@keyframes robotBounce {
  0% { transform: translateY(0) rotate(-5deg); }
  100% { transform: translateY(-3px) rotate(5deg); }
}

.ai-trigger-badge {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
  margin-left: 0;
}

.phorn-ai-trigger-btn:hover {
  padding: 0 1.35rem;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 
    0 15px 40px rgba(168, 85, 247, 0.7),
    0 0 35px rgba(6, 182, 212, 0.6);
}

.phorn-ai-trigger-btn:hover .ai-trigger-badge {
  max-width: 120px;
  opacity: 1;
  margin-left: 0.5rem;
}

/* Floating AI Chatbot Window */
.phorn-ai-widget {
  position: fixed;
  bottom: 6rem;
  left: 2rem;
  right: auto;
  width: 380px;
  max-width: 90vw;
  height: 520px;
  max-height: 80vh;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 24px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(168, 85, 247, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phorn-ai-widget.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-widget-header {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(6, 182, 212, 0.25));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-avatar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.ai-header-left h4 {
  font-size: 0.98rem;
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ai-online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.ai-header-left p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.btn-close-ai {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #a0aec0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--bounce);
}
.btn-close-ai:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.ai-messages-container {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ai-messages-container::-webkit-scrollbar {
  width: 5px;
}
.ai-messages-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a855f7, #06b6d4);
  border-radius: 4px;
}

.ai-msg {
  display: flex;
  gap: 0.65rem;
  animation: fadeInMsg 0.3s ease;
}

.ai-msg.ai-user-msg {
  flex-direction: row-reverse;
}

.ai-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.3);
  border: 1px solid #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.ai-msg.ai-user-msg .ai-msg-avatar {
  background: rgba(6, 182, 212, 0.3);
  border-color: #06b6d4;
}

.ai-msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  font-size: 0.88rem;
  color: #f1f5f9;
  line-height: 1.5;
  max-width: 82%;
  word-break: break-word;
}

.ai-msg.ai-user-msg .ai-msg-bubble {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.25));
  border-color: rgba(6, 182, 212, 0.4);
}

.ai-chips-wrapper {
  padding: 0.4rem 0.8rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chips-wrapper::-webkit-scrollbar {
  height: 3px;
}

.ai-chip {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--bounce);
}

.ai-chip:hover {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

.ai-input-bar {
  padding: 0.8rem 1rem;
  background: rgba(18, 24, 38, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 0.5rem;
}

.ai-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0.6rem 1rem;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}
.ai-input-bar input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.btn-send-ai {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--bounce);
}
.btn-send-ai:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

/* Auth Modal Styling (Matching Reference Screenshot 100%) */
#authModal {
  z-index: 2000 !important;
}

#authModal .auth-modal-box {
  max-width: 440px !important;
  width: 90vw !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  background: #14171f !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 28px !important;
  padding: 1.4rem 1.6rem !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(118, 240, 100, 0.12) !important;
  position: relative !important;
  box-sizing: border-box !important;
}

#authModal .auth-modal-box::-webkit-scrollbar {
  width: 5px;
}
#authModal .auth-modal-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

#authModal .auth-close-btn {
  position: absolute !important;
  top: 1.2rem !important;
  right: 1.2rem !important;
  left: auto !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
}

#authModal .auth-close-btn:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  transform: rotate(90deg) scale(1.1) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5) !important;
}

/* Tabs Container */
#authModal .auth-tabs-container {
  display: flex !important;
  background: #0b0d12 !important;
  border-radius: 16px !important;
  padding: 4px !important;
  margin-bottom: 1.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  gap: 4px !important;
}

#authModal .auth-tab-btn {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  text-align: center !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
}

#authModal .auth-tab-btn.active {
  background: #76f064 !important;
  color: #0b0d12 !important;
  box-shadow: 0 4px 15px rgba(118, 240, 100, 0.35) !important;
}

/* Google Social Login Button */
#authModal .auth-social-section {
  margin-bottom: 1.2rem !important;
}

#authModal .btn-google-login {
  width: 100% !important;
  background: #ffffff !important;
  color: #1e293b !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 0.85rem 1.2rem !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15) !important;
  transition: all 0.25s ease !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#authModal .btn-google-login:hover {
  background: #f8fafc !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25) !important;
}

#authModal .google-svg-logo {
  flex-shrink: 0 !important;
}

/* Auth Divider */
#authModal .auth-divider {
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  margin: 1.2rem 0 !important;
  color: #64748b !important;
  font-size: 0.85rem !important;
}

#authModal .auth-divider::before,
#authModal .auth-divider::after {
  content: '' !important;
  flex: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#authModal .auth-divider span {
  padding: 0 0.8rem !important;
}

/* Form Inputs inside Auth Modal */
#authModal .form-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 14px !important;
  padding: 0.75rem 1rem !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: all 0.25s ease !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

#authModal .form-input:focus {
  border-color: #76f064 !important;
  box-shadow: 0 0 15px rgba(118, 240, 100, 0.3) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

#authModal .form-input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

#authModal input:-webkit-autofill,
#authModal input:-webkit-autofill:hover,
#authModal input:-webkit-autofill:focus,
#authModal input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #1a202c inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Submit Button */
#authModal .btn-auth-submit {
  width: 100% !important;
  background: #76f064 !important;
  color: #0b0d12 !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 0.85rem !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  margin-top: 0.5rem !important;
  box-shadow: 0 4px 18px rgba(118, 240, 100, 0.3) !important;
  transition: all 0.25s ease !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#authModal .btn-auth-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(118, 240, 100, 0.45) !important;
}

/* Header Auth Button & Profile Badge Styling */
.btn-auth-header {
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(236, 72, 153, 0.45);
  color: #ffffff;
  padding: 0.4rem 0.95rem;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.25);
  position: relative;
}

.btn-auth-header:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border-color: #ec4899;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45);
}

.logged-in-profile-pill {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.88) 100%) !important;
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), 
                    linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #38bdf8 100%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35) !important;
}

.logged-in-profile-pill:hover {
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.6), 0 0 15px rgba(56, 189, 248, 0.45) !important;
  transform: translateY(-2px) scale(1.04) !important;
}

.btn-auth-header:hover .nav-shield-tooltip {
  opacity: 1 !important;
}

.user-nav-avatar-ring {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 1.5px;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #38bdf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-nav-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #0f172a;
}

.user-nav-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8.5px;
  height: 8.5px;
  background: #10b981;
  border: 1.5px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseOnline 2s infinite ease-in-out;
}

@keyframes pulseOnline {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.user-nav-name-text {
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Brand Logo Avatar Strict Sizing */
.brand-avatar-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

.news-page-header .brand-logo img,
.watch-page-header .brand-logo img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
}

/* Google OAuth Window Popup Styling (Matching User Screenshot 100%) */
.google-oauth-window-box {
  width: 440px;
  max-width: 94vw;
  background: #202124 !important; /* Official Google Dark Theme background */
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  border: 1px solid #3c4043;
  color: #e8eaed;
  font-family: 'Roboto', 'Google Sans', sans-serif, 'Khmer OS Siemreap';
  animation: modalScaleUp 0.25s ease;
}

.google-chrome-titlebar {
  background: #292a2d;
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3c4043;
  font-size: 0.78rem;
  color: #9aa0a6;
}

.chrome-tab-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.chrome-window-controls {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.chrome-close-btn:hover {
  color: #f87171;
}

.google-chrome-urlbar {
  background: #202124;
  padding: 0.35rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid #3c4043;
  font-size: 0.78rem;
  color: #9aa0a6;
}

.google-chrome-urlbar .url-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-brand-header {
  padding: 0.8rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #e8eaed;
  border-bottom: 1px solid #3c4043;
}

.google-oauth-body {
  padding: 2rem 1.8rem 1.5rem 1.8rem;
}

.google-oauth-body h2 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #e8eaed;
  margin-bottom: 0.3rem;
}

.google-subtext {
  font-size: 0.9rem;
  color: #9aa0a6;
  margin-bottom: 1.8rem;
}

.google-account-items-list {
  display: flex;
  flex-direction: column;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.google-account-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.google-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-avatar-icon {
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  color: #9aa0a6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-account-info {
  display: flex;
  flex-direction: column;
}

.g-account-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8eaed;
}

.g-account-email {
  font-size: 0.82rem;
  color: #9aa0a6;
}

.google-account-divider {
  height: 1px;
  background: #3c4043;
  margin: 0.4rem 0;
}

.google-oauth-footer {
  padding: 1rem 1.8rem 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9aa0a6;
}

.google-lang-selector {
  cursor: pointer;
}

.google-footer-links {
  display: flex;
  gap: 1.2rem;
}

.google-footer-links a {
  color: #9aa0a6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.google-footer-links a:hover {
  color: #e8eaed;
}

/* Time-stamped Comments Clean Layout & Alignment Fixes */
.comments-section {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.comment-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.9rem !important;
  padding: 0.9rem 1.1rem !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  margin-bottom: 0.75rem !important;
}

.comment-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #0b0d12;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(118, 240, 100, 0.3);
}

.comment-content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.comment-header-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.comment-author-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
}

.comment-time-ago {
  font-size: 0.78rem;
  color: #94a3b8;
}

.comment-text-body {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.3rem;
  font-size: 0.82rem;
}

.btn-like-comment {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: #f472b6;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-like-comment:hover {
  background: #ec4899;
  color: #ffffff;
}

.btn-reply-comment {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-reply-comment:hover {
  background: #3b82f6;
  color: #ffffff;
}

.comment-mention-tag {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.btn-delete-comment {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-delete-comment:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-edit-comment {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #38bdf8;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-edit-comment:hover {
  background: #06b6d4;
  color: #ffffff;
}

/* Clean Timestamp Button Pill Styling */
.ts-badge-link {
  background: rgba(118, 240, 100, 0.15) !important;
  border: 1px solid rgba(118, 240, 100, 0.4) !important;
  color: #76f064 !important;
  padding: 0.2rem 0.65rem !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  transition: all 0.2s ease !important;
  margin-right: 0.3rem;
}

.ts-badge-link:hover {
  background: #76f064 !important;
  color: #0b0d12 !important;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(118, 240, 100, 0.5);
}

/* Floating Bottom Quick Badges (Push Notification & Telegram) */
/* Modern Glass Capsule Dock */
.floating-bottom-quick-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 990;
  pointer-events: auto;
  padding: 10px;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 35px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.float-badge-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  padding: 0;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  overflow: visible !important;
  position: relative;
  white-space: nowrap;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.float-badge-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.float-badge-item:hover {
  max-width: 175px;
  padding-right: 16px;
  transform: translateY(-3px) scale(1.05);
}

.float-badge-item:hover .float-badge-text {
  opacity: 1;
  max-width: 130px;
  margin-left: 8px;
}

/* 1. Bookmark / Saved Movies Pill (Neon Rose) */
.float-badge-bookmark {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.95), rgba(190, 18, 60, 0.95));
  color: #fff;
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.5);
}
.float-badge-bookmark .float-badge-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #be123c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff !important;
  flex-shrink: 0;
  overflow: visible !important;
  position: relative;
}
.float-badge-bookmark .float-badge-icon i {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* 2. Movie Match Pill (Neon Magenta/Pink) */
.float-badge-match {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(217, 70, 239, 0.95));
  color: #fff;
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.5);
}
.float-badge-match .float-badge-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #d946ef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff !important;
  flex-shrink: 0;
  overflow: visible !important;
  position: relative;
}
.float-badge-match .float-badge-icon i {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* 3. Direct Chat Pill (Cyber Teal/Emerald) */
.float-badge-chat {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(6, 182, 212, 0.95));
  color: #fff;
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
}
.float-badge-chat .float-badge-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff !important;
  flex-shrink: 0;
  overflow: visible !important;
  position: relative;
}
.float-badge-chat .float-badge-icon i {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* 4. Telegram Pill (Electric Sky Blue) */
.float-badge-telegram {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(56, 189, 248, 0.95));
  color: #fff;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.5);
}
.float-badge-telegram .float-badge-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff !important;
  flex-shrink: 0;
  overflow: visible !important;
  position: relative;
}
.float-badge-telegram .float-badge-icon i {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* 5. Notification Pill (Golden Amber) */
.float-badge-notif {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
  color: #fff;
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
}
.float-badge-notif .float-badge-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff !important;
  flex-shrink: 0;
  overflow: visible !important;
  position: relative;
}
.float-badge-notif .float-badge-icon i {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Floating Indicator Badge Pills */
.float-badge-indicator-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #0b0f19;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.95);
  animation: pulse 1.5s infinite;
  line-height: 1;
  z-index: 999;
}

.float-badge-indicator-count.bookmark-badge {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.95);
}

.float-badge-indicator-count.chat-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.95);
}

@media (max-width: 768px) {
  .floating-bottom-quick-bar {
    bottom: 16px;
    right: 16px;
    gap: 8px;
    padding: 6px;
    border-radius: 28px;
  }
  .float-badge-item {
    height: 38px;
    min-width: 38px;
    max-width: 38px;
  }
  .float-badge-bookmark .float-badge-icon,
  .float-badge-match .float-badge-icon,
  .float-badge-chat .float-badge-icon,
  .float-badge-telegram .float-badge-icon,
  .float-badge-notif .float-badge-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   💬 1-on-1 Direct User Chat Floating Widget Styling
   ========================================================================== */
.direct-chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 380px;
  max-width: 92vw;
  height: 520px;
  max-height: 82vh;
  z-index: 1050;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 24px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(16, 185, 129, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.direct-chat-widget.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.direct-chat-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.direct-chat-header-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.direct-chat-header-title h4 {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 800;
  margin: 0;
}

.direct-chat-header-title p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.direct-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.direct-chat-header-actions button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--smooth);
}

.direct-chat-header-actions button:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.direct-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.direct-chat-user-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.8rem;
  gap: 0.8rem;
}

.chat-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.chat-search-box i {
  position: absolute;
  left: 0.9rem;
  color: #64748b;
  font-size: 0.85rem;
}

.chat-search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.55rem 0.8rem 0.55rem 2.3rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.chat-users-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.chat-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 58px;
  box-sizing: border-box;
}

.chat-user-item:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.chat-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.online-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2.5px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.chat-user-info {
  flex: 1;
  margin-left: 0.8rem;
  margin-right: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.chat-user-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-gender-badge {
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-gender-badge.male {
  background: #2563eb;
  color: #ffffff;
}

.chat-gender-badge.female {
  background: #ec4899;
  color: #ffffff;
}

.chat-user-status {
  font-size: 0.82rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.2rem;
}

.btn-start-chat {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0.42rem 0.95rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-start-chat:hover {
  background: #059669;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.direct-chat-thread-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.thread-top-bar {
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-back-users {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
}

.active-target-name {
  font-weight: 700;
  color: #10b981;
  font-size: 0.9rem;
}

.btn-share-movie-chat {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.direct-chat-messages-box {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.direct-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.direct-msg-row.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.direct-msg-row.received {
  align-self: flex-start;
  align-items: flex-start;
}

.direct-msg-bubble {
  padding: 0.6rem 0.85rem;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-word;
}

.direct-msg-row.sent .direct-msg-bubble {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.direct-msg-row.received .direct-msg-bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.direct-msg-time {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.chat-date-divider-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 16px 0 10px 0;
  position: relative;
  z-index: 2;
}

.chat-date-divider-badge {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 12px rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
  user-select: none;
}

.chat-seen-status-pill {
  transition: all 0.2s ease;
  user-select: none;
}

.chat-seen-status-pill:hover {
  transform: scale(1.04);
}

.direct-msg-time-bar {
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 3px;
  gap: 5px;
}

.direct-chat-input-bar {
  padding: 0.55rem 0.6rem;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.chat-input-pill-container {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  padding: 2px 4px 2px 6px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.chat-input-pill-container:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.btn-chat-pill-icon {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-chat-pill-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

.btn-chat-pill-icon.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  animation: pulse 1.2s infinite;
}

.chat-input-pill-container input {
  flex: 1;
  min-width: 40px;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0.4rem 0.3rem !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  box-shadow: none !important;
}

.btn-attach-image-chat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-attach-image-chat:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-send-direct-chat {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-send-direct-chat:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.7);
}

.direct-msg-bubble.image-bubble {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.chat-attached-img {
  max-width: 220px;
  max-height: 250px;
  border-radius: 18px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: block;
}

.chat-attached-img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-attach-image-chat.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
  border-color: #ef4444 !important;
  animation: pulse 1s infinite;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.chat-voice-msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.chat-voice-msg audio {
  max-width: 220px;
  height: 36px;
  border-radius: 20px;
  outline: none;
}

@media (max-width: 500px) {
  .direct-chat-widget {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 1.5rem;
    height: 480px;
  }
}

/* 📹 WebRTC Video Call Modal & Incoming Call Overlay */
.btn-video-call-chat {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #a855f7;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.btn-video-call-chat:hover {
  background: #a855f7;
  color: #fff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.video-call-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-call-box {
  width: 720px;
  max-width: 95vw;
  height: 540px;
  max-height: 90vh;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(168, 85, 247, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.call-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.call-user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.call-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.call-user-info h4 {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 800;
  margin: 0;
}

.call-user-info p {
  font-size: 0.78rem;
  color: #38bdf8;
  margin: 0;
}

.video-streams-container {
  flex: 1;
  position: relative;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-video {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 160px;
  height: 110px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  z-index: 10;
  background: #000;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  gap: 0.8rem;
}

.video-placeholder i {
  font-size: 4rem;
  color: rgba(168, 85, 247, 0.4);
  animation: pulse 1.8s infinite;
}

.call-controls-bar {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.btn-call-ctrl {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-call-ctrl:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.btn-call-ctrl.btn-hangup {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.btn-call-ctrl.btn-hangup:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
}

/* Incoming Call Alert Dialog Overlay */
.incoming-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.incoming-call-card {
  width: 360px;
  max-width: 90vw;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 28px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(16, 185, 129, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.calling-pulse-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  animation: pulse 1.2s infinite;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.incoming-call-card h3 {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 800;
  margin: 0;
}

.incoming-call-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.incoming-call-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.btn-accept-call {
  flex: 1;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-decline-call {
  flex: 1;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 0.75rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Chat Image Lightbox Active Override */
#chatImageLightboxModal.active {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  z-index: 3000 !important;
}

#addStoryModal.active,
#storyViewersSheetModal.active {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

#addStoryModal .modal-container {
  max-width: 560px !important;
  width: 92vw !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 1.8rem !important;
  border-radius: 28px !important;
  z-index: 100000 !important;
}

#storyViewersSheetModal .modal-container {
  z-index: 100000 !important;
}

/* ==========================================================================
   🌟 24-Hour Story Feature Styles (Glowing Animated Ring & Fullscreen Viewer)
   ========================================================================== */
@keyframes storyRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.user-avatar-story-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 50%;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.user-avatar-story-ring:hover {
  transform: scale(1.05);
}

.user-avatar-story-ring.has-story {
  background: conic-gradient(#ec4899, #8b5cf6, #3b82f6, #10b981, #f59e0b, #ec4899);
  animation: storyRingSpin 3.5s linear infinite;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.55);
}

.user-avatar-story-ring.has-story img {
  border: 3px solid #0f172a !important;
}

/* Animated Story Type Badge on Top-Right of Avatar Ring */
.avatar-story-thought-bubble {
  position: absolute;
  top: -4px;
  right: -4px;
  left: auto;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border: 1.5px solid #ec4899;
  color: #f472b6;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 20;
  cursor: pointer;
  animation: storyBadgePulse 1.8s ease-in-out infinite alternate;
}

@keyframes storyBadgePulse {
  0% { transform: scale(0.92); box-shadow: 0 0 6px rgba(236, 72, 153, 0.5); }
  100% { transform: scale(1.15); box-shadow: 0 0 14px rgba(236, 72, 153, 0.95); }
}

.avatar-story-thought-bubble::after {
  display: none;
}

/* Fullscreen Story Viewer Backdrop */
.story-viewer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.96);
  backdrop-filter: blur(30px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-viewer-container {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 94vh;
  max-height: 800px;
  background: #0b0f19;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.story-progress-bar-container {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 10;
}

.story-progress-segment {
  flex: 1;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
}

.story-header-bar {
  position: absolute;
  top: 24px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  background: transparent !important;
  padding: 4px 6px;
}

.story-author-avatar-wrap {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #06b6d4 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
}

.story-author-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

.story-content-stage {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #050810;
  overflow: hidden;
}

.story-content-stage img,
.story-content-stage video,
.story-media-content {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  border: none !important;
  outline: none !important;
  clip-path: none !important;
  box-shadow: none !important;
}

.story-overlay-caption-bar {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  color: #ffffff;
  padding: 0.75rem 1.1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 15;
  word-break: break-word;
}

.story-text-mood-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.5;
  word-break: break-word;
  box-sizing: border-box;
}

.story-bottom-viewer-bar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.story-bottom-viewer-bar:hover {
  background: rgba(16, 185, 129, 0.35);
  transform: translateX(-50%) scale(1.05);
}

.story-tap-area {
  position: absolute;
  top: 65px;
  bottom: 65px;
  z-index: 5;
}

.story-tap-area.left {
  left: 0;
  width: 35%;
}

.story-tap-area.right {
  right: 0;
  width: 65%;
}

/* ===== 🌟 24h Story Reel Bar Above Hero Banner ===== */
/* ===== 🌟 24h Story Reel Bar Above Hero Banner (Compact & Sleek) ===== */
.home-stories-tray-section {
  background: rgba(18, 24, 38, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 0.75rem 1rem 1rem 1rem !important;
  margin-bottom: 1.2rem !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.home-stories-scroll-tray {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 0.7rem !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding: 0.4rem 0.2rem 0.6rem 0.2rem !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(236, 72, 153, 0.4) transparent !important;
}
.home-stories-scroll-tray::-webkit-scrollbar {
  height: 4px;
}
.home-stories-scroll-tray::-webkit-scrollbar-thumb {
  background: rgba(236, 72, 153, 0.5);
  border-radius: 10px;
}

.home-story-card {
  flex: 0 0 85px !important;
  width: 85px !important;
  min-width: 85px !important;
  max-width: 85px !important;
  height: 125px !important;
  min-height: 125px !important;
  max-height: 125px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  position: relative !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  box-sizing: border-box !important;
  align-self: flex-start !important;
}
.home-story-card:hover {
  transform: translateY(-3px) scale(1.04) !important;
  border-color: #ec4899 !important;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.45) !important;
}

.home-story-thumb-box {
  position: relative !important;
  width: 100% !important;
  height: 92px !important;
  max-height: 92px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.home-story-media-preview {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: transform 0.4s ease !important;
}
.home-story-card:hover .home-story-media-preview {
  transform: scale(1.08) !important;
}

.home-story-user-avatar-bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: brightness(0.45) blur(2px) !important;
}

.home-story-create-plus-icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 32px !important;
  height: 32px !important;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  border: 2.5px solid #0f172a !important;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.6) !important;
}

.home-story-user-ring-badge {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  padding: 1.5px !important;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #38bdf8 100%) !important;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5) !important;
  z-index: 3 !important;
}
.home-story-ring-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid #0f172a !important;
}

.home-story-count-badge {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  background: rgba(15, 23, 42, 0.88) !important;
  color: #ec4899 !important;
  border: 1px solid rgba(236, 72, 153, 0.4) !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  padding: 1px 5px !important;
  border-radius: 8px !important;
  z-index: 3 !important;
}

.home-story-text-preview {
  padding: 0.4rem !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-align: center !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8) !important;
}

.home-story-card-footer {
  background: rgba(15, 23, 42, 0.95) !important;
  padding: 0.3rem 0.4rem !important;
  height: 33px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.home-story-username {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 🌟 Ultra Premium PhornNewS Brand Logo Styling & Animation FX */
.phorn-news-brand-text {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.45));
  transition: all 0.3s ease;
  user-select: none;
}

.phorn-news-brand-text .part-phorn {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.phorn-news-brand-text .part-new {
  background: linear-gradient(135deg, #ff4081 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.5));
}

.phorn-news-brand-text .part-s {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.42rem;
  margin-left: 1px;
  display: inline-block;
  animation: goldPulseSparkle 2.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.7));
}

@keyframes goldPulseSparkle {
  0% { filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5)); transform: scale(1); }
  100% { filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.95)); transform: scale(1.1); }
}

/* Category Section Blocks (Full Width Container) */
.category-section-block {
  width: 100% !important;
  display: block !important;
  clear: both;
}

@keyframes modalPopEntrance {
  0% { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes adminFormShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* 👑 Official Admin Distinction Styles */
.admin-official-badge {
  background: linear-gradient(135deg, #f59e0b, #06b6d4, #3b82f6) !important;
  color: #ffffff !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 20px !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4), 0 0 12px rgba(245, 158, 11, 0.6) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  animation: adminBadgePulse 2.5s infinite alternate !important;
}

@keyframes adminBadgePulse {
  0% { box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4), 0 0 12px rgba(245, 158, 11, 0.6); }
  100% { box-shadow: 0 4px 24px rgba(6, 182, 212, 0.95), 0 0 24px rgba(245, 158, 11, 0.95); transform: scale(1.03); }
}

.user-avatar-story-ring.admin-avatar-glow {
  border: 3px solid transparent !important;
  background: linear-gradient(#0b0f19, #0b0f19) padding-box, linear-gradient(135deg, #f59e0b, #06b6d4, #ec4899) border-box !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7), 0 0 35px rgba(245, 158, 11, 0.6) !important;
}


.admin-crown-icon {
  color: #f59e0b !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8)) !important;
  margin-left: 4px !important;
}

/* ==========================================================================
   💬 Direct Chat User Roster Scrollbar & Overflow Styling
   ========================================================================== */
.direct-chat-user-list {
  display: flex;
  flex-direction: column;
  max-height: 520px;
  height: 100%;
  overflow: hidden;
}

.chat-users-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  max-height: 420px !important;
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0.4rem 0.35rem 0.8rem 0.1rem !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: #10b981 rgba(15, 23, 42, 0.6) !important;
}

.chat-user-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.75rem 0.9rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  min-height: 60px !important;
  height: auto !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.chat-user-item:hover {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

.chat-users-container::-webkit-scrollbar,
.direct-chat-messages-box::-webkit-scrollbar {
  width: 6px !important;
}

.chat-users-container::-webkit-scrollbar-track,
.direct-chat-messages-box::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6) !important;
  border-radius: 10px !important;
}

.chat-users-container::-webkit-scrollbar-thumb,
.direct-chat-messages-box::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
  border-radius: 10px !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8) !important;
}

.chat-users-container::-webkit-scrollbar-thumb:hover,
.direct-chat-messages-box::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%) !important;
}

/* ==========================================================================
   🎭 Chat Message Reactions Styling & Animations
   ========================================================================== */
.reaction-emoji-btn {
  font-size: 1.18rem !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease !important;
  user-select: none !important;
  display: inline-block !important;
  padding: 2px 4px !important;
  border-radius: 50% !important;
}

.reaction-emoji-btn:hover {
  transform: scale(1.4) translateY(-3px) !important;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.9)) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.reaction-emoji-btn:active {
  transform: scale(1.1) !important;
}

.chat-reaction-picker-bar {
  animation: reactionPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes reactionPop {
  0% { transform: scale(0.4) translateY(15px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.chat-reactions-pill {
  transition: transform 0.2s ease, background 0.2s ease !important;
}

.chat-reactions-pill:hover {
  transform: scale(1.12) !important;
  background: rgba(30, 41, 59, 0.98) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
}

/* ==========================================================================
   🔊 Custom Voice Note Player with Waveform & Speed Control
   ========================================================================== */
.custom-voice-player {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 6px 12px !important;
  margin: 4px 0 !important;
  min-width: 210px !important;
  max-width: 270px !important;
  backdrop-filter: blur(8px) !important;
}

.btn-voice-play-pause {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: none !important;
  color: #ffffff !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  flex-shrink: 0 !important;
}

.btn-voice-play-pause:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.8) !important;
}

.voice-waveform-wrapper {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.voice-waveform-bars {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  height: 22px !important;
}

.voice-waveform-bars .bar {
  width: 3px !important;
  background: rgba(255, 255, 255, 0.4) !important;
  border-radius: 2px !important;
  transition: height 0.2s ease, background 0.2s ease !important;
}

.voice-waveform-bars .bar:nth-child(1) { height: 6px; }
.voice-waveform-bars .bar:nth-child(2) { height: 12px; }
.voice-waveform-bars .bar:nth-child(3) { height: 18px; }
.voice-waveform-bars .bar:nth-child(4) { height: 10px; }
.voice-waveform-bars .bar:nth-child(5) { height: 20px; }
.voice-waveform-bars .bar:nth-child(6) { height: 14px; }
.voice-waveform-bars .bar:nth-child(7) { height: 8px; }
.voice-waveform-bars .bar:nth-child(8) { height: 16px; }
.voice-waveform-bars .bar:nth-child(9) { height: 22px; }
.voice-waveform-bars .bar:nth-child(10) { height: 12px; }
.voice-waveform-bars .bar:nth-child(11) { height: 18px; }
.voice-waveform-bars .bar:nth-child(12) { height: 9px; }
.voice-waveform-bars .bar:nth-child(13) { height: 15px; }
.voice-waveform-bars .bar:nth-child(14) { height: 7px; }

.voice-waveform-bars.playing .bar {
  background: #10b981 !important;
  animation: waveformBounce 0.8s infinite ease-in-out alternate !important;
}

.voice-waveform-bars.playing .bar:nth-child(2n) { animation-delay: 0.15s !important; }
.voice-waveform-bars.playing .bar:nth-child(3n) { animation-delay: 0.3s !important; }
.voice-waveform-bars.playing .bar:nth-child(4n) { animation-delay: 0.45s !important; }

@keyframes waveformBounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}

.voice-time-display {
  font-size: 0.65rem !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
  font-weight: 600 !important;
}

.btn-voice-speed-pill {
  background: rgba(245, 158, 11, 0.2) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  color: #f59e0b !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.btn-voice-speed-pill:hover {
  background: rgba(245, 158, 11, 0.35) !important;
  transform: scale(1.08) !important;
}

/* ==========================================================================
   📌 Pin Chat & ⭐ Starred Messages Styling
   ========================================================================== */
.pinned-chat-badge {
  color: #f59e0b !important;
  font-size: 0.72rem !important;
  margin-left: 4px !important;
}

.btn-pin-chat-toggle {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  cursor: pointer !important;
  font-size: 0.82rem !important;
  padding: 4px !important;
  transition: all 0.2s ease !important;
}

.btn-pin-chat-toggle.active,
.btn-pin-chat-toggle:hover {
  color: #f59e0b !important;
  transform: scale(1.18) !important;
}

.chat-starred-badge {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  color: #f59e0b !important;
  font-size: 0.85rem !important;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.9)) !important;
}

/* ==============================================================================
   🍿 Cinema Watch Party Card & Movie Picker Modal
   ============================================================================== */
.chat-movie-share-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 8px;
  max-width: 290px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.15);
  backdrop-filter: blur(8px);
  margin: 2px 0;
  text-align: left;
}

.movie-share-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.3));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.movie-share-card-inner {
  display: flex;
  gap: 8px;
  align-items: center;
}

.movie-share-poster-wrap {
  position: relative;
  width: 65px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.movie-share-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-share-rating {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.movie-share-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.movie-share-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-share-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-share-meta {
  display: flex;
  gap: 4px;
  margin-top: 1px;
}

.movie-share-meta .meta-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 6px;
  white-space: nowrap;
}

.btn-chat-watch-action {
  margin-top: 4px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-chat-watch-action:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
}

.chat-movie-share-actions-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 5px;
  width: 100%;
}

.btn-chat-watch-sync {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.45);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  font-family: inherit;
}

.btn-chat-watch-sync:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.65);
}

.btn-chat-watch-solo {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  width: 100%;
  font-family: inherit;
}

.btn-chat-watch-solo:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==============================================================================
   🍿 Watch Party Live Sync Banner & Notification Toast
   ============================================================================== */
.watch-party-sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.15));
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25), 0 0 15px rgba(6, 182, 212, 0.15);
  backdrop-filter: blur(10px);
  animation: fadeInPartyBanner 0.35s ease-out;
}

@keyframes fadeInPartyBanner {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.watch-party-sync-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.watch-party-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
  animation: pulseDotLive 1.5s infinite;
}

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

.watch-party-banner-text {
  font-size: 0.85rem;
  color: #f8fafc;
  font-weight: 600;
}

.watch-party-banner-text strong {
  color: #38bdf8;
}

.btn-leave-watch-party {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}

.btn-leave-watch-party:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.watch-party-sync-toast {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 150;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(16, 185, 129, 0.65);
  color: #f8fafc;
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(16, 185, 129, 0.3);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeInToast 0.25s ease-out;
  transition: all 0.3s ease;
}

@keyframes fadeInToast {
  from { opacity: 0; transform: translateY(-6px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Movie Picker Modal Box */
#chatMovieShareModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(4, 5, 10, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#chatMovieShareModal.active,
#chatMovieShareModal[style*="display: flex"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Movie Picker Modal Box - Large & Spacious Cinema Grid */
.chat-movie-picker-modal-box {
  position: relative;
  background: #0b1120;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 24px;
  padding: 20px 24px;
  width: 94vw;
  max-width: 860px;
  max-height: 88vh;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-movie-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.btn-close-movie-picker {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-close-movie-picker:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
  transform: scale(1.1) rotate(90deg);
}

.chat-movie-picker-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-movie-picker-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}

.chat-movie-picker-search-bar:focus-within {
  border-color: #f59e0b;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.chat-movie-picker-search-bar input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  flex: 1;
  outline: none;
  font-family: inherit;
}

.chat-movie-picker-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 6px 2px;
  scrollbar-width: none;
}

.chat-movie-picker-categories::-webkit-scrollbar {
  display: none;
}

.picker-cat-btn {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.picker-cat-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.picker-cat-btn.active {
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.55), 0 4px 12px rgba(6, 182, 212, 0.35) !important;
  transform: scale(1.02);
}

.picker-cat-btn.active i {
  color: #ffffff !important;
}

.chat-movie-picker-list {
  flex: 1;
  overflow-y: auto;
  max-height: 56vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}

.chat-movie-picker-pinned-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 4px;
}

.chat-movie-picker-pinned-section .pinned-header {
  font-size: 0.78rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-movie-picker-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 768px) {
  .chat-movie-picker-grid {
    grid-template-columns: 1fr !important;
  }
}

.chat-movie-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-movie-picker-item:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.chat-movie-picker-item .picker-item-poster {
  width: 52px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-movie-picker-item .picker-item-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.picker-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.picker-item-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-item-meta {
  display: flex;
  gap: 8px;
  font-size: 0.7rem;
  color: #cbd5e1;
  margin-top: 4px;
}

.picker-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
}

.btn-picker-send {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  font-family: inherit;
}

.btn-picker-send:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6);
}

/* ==============================================================================
   ✍️ Real-Time Typing Indicator Styling
   ============================================================================== */
.typing-status-header {
  color: #38bdf8 !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.76rem !important;
  animation: typingHeaderPulse 1.5s infinite ease-in-out;
}

@keyframes typingHeaderPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8)); }
}

.typing-wave-dots span {
  animation: waveDot 1.4s infinite;
  display: inline-block;
}
.typing-wave-dots span:nth-child(1) { animation-delay: 0s; }
.typing-wave-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-wave-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.typing-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 6px;
  animation: fadeInTyping 0.25s ease-out;
}

@keyframes fadeInTyping {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing-bubble-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 6px 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(8px);
}

.typing-text-mini {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.typing-dots-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.typing-dots-wave .dot {
  width: 5px;
  height: 5px;
  background: #38bdf8;
  border-radius: 50%;
  display: inline-block;
  animation: waveDotBounce 1.3s infinite ease-in-out;
}

.typing-dots-wave .dot:nth-child(1) { animation-delay: 0s; }
.typing-dots-wave .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots-wave .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveDotBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1.3); opacity: 1; }
}

.typing-pencil-icon {
  font-size: 0.8rem;
  animation: pencilShake 1.2s infinite ease-in-out;
}

@keyframes pencilShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

/* ==============================================================================
   🎙️ Voice Message Story Styles (Story សារសំឡេង)
   ============================================================================== */

/* Voice Story Tab Recorder in #addStoryModal */
.story-voice-record-card {
  border: 2px dashed rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.04);
  padding: 1.5rem 1.2rem;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.story-voice-record-card.recording {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.2);
}

.story-voice-mic-trigger {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.4);
}

.story-voice-mic-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.55);
}

.story-voice-mic-trigger.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulseRecordingMic 1.4s infinite;
}

@keyframes pulseRecordingMic {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); transform: scale(1); }
  50% { box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); transform: scale(1); }
}

.story-voice-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.story-voice-timer-badge.recording {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.story-voice-live-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin: 8px 0;
}

.story-voice-live-waves span {
  width: 4px;
  height: 6px;
  background: #ef4444;
  border-radius: 4px;
  animation: liveWaveBounce 0.8s infinite ease-in-out alternate;
}

.story-voice-live-waves span:nth-child(1) { animation-delay: 0.1s; }
.story-voice-live-waves span:nth-child(2) { animation-delay: 0.3s; }
.story-voice-live-waves span:nth-child(3) { animation-delay: 0.5s; }
.story-voice-live-waves span:nth-child(4) { animation-delay: 0.2s; }
.story-voice-live-waves span:nth-child(5) { animation-delay: 0.4s; }

@keyframes liveWaveBounce {
  0% { height: 4px; }
  100% { height: 22px; }
}

/* Audio Preview Box after recording */
.story-voice-preview-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0.8rem;
}

.btn-story-voice-play-preview {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #10b981;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-story-voice-play-preview:hover {
  transform: scale(1.08);
}

.btn-story-voice-rerecord {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-story-voice-rerecord:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* ==============================================================================
   🍿 Story Viewer Voice Capsule Pill (Like User's Provided Image)
   ============================================================================== */
.story-voice-viewer-stage-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}

.story-voice-mood-text {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.55;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  max-width: 90%;
  word-break: break-word;
  margin-bottom: 2rem;
  animation: fadeInVoiceMood 0.5s ease-out;
}

@keyframes fadeInVoiceMood {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Capsule-Shaped Voice Player Button */
.story-voice-capsule-pill {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(16, 185, 129, 0.6);
  color: #fff;
  padding: 10px 22px 10px 16px;
  border-radius: 9999px; /* Pill shape */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  max-width: 90%;
}

.story-voice-viewer-stage-wrap.has-collab-banner .story-voice-capsule-pill {
  bottom: 235px !important;
}

.story-voice-viewer-stage-wrap.has-collab-banner .story-voice-subtitle-banner {
  bottom: 295px !important;
}

.story-voice-capsule-pill:hover {
  transform: translateX(-50%) scale(1.05);
  border-color: #10b981;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 28px rgba(16, 185, 129, 0.55);
}

.story-voice-capsule-pill:active {
  transform: translateX(-50%) scale(0.98);
}

.story-voice-capsule-pill.playing {
  background: rgba(6, 78, 59, 0.9);
  border-color: #34d399;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 25px rgba(52, 211, 153, 0.5);
}

.story-voice-play-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.story-voice-capsule-pill.playing .story-voice-play-icon-wrap {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.story-voice-capsule-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.story-voice-capsule-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.story-voice-capsule-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-voice-wave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.story-voice-wave-bars span {
  width: 3px;
  height: 5px;
  background: #34d399;
  border-radius: 3px;
  transition: height 0.15s ease;
}

.story-voice-capsule-pill.playing .story-voice-wave-bars span {
  animation: voiceWavePlay 0.7s infinite alternate ease-in-out;
}

.story-voice-capsule-pill.playing .story-voice-wave-bars span:nth-child(1) { animation-delay: 0s; }
.story-voice-capsule-pill.playing .story-voice-wave-bars span:nth-child(2) { animation-delay: 0.2s; }
.story-voice-capsule-pill.playing .story-voice-wave-bars span:nth-child(3) { animation-delay: 0.4s; }
.story-voice-capsule-pill.playing .story-voice-wave-bars span:nth-child(4) { animation-delay: 0.1s; }

@keyframes voiceWavePlay {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Floating Subtitle Banner */
.story-voice-subtitle-banner {
  position: absolute;
  bottom: 145px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 8px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  max-width: 85%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: fadeInSubtitle 0.3s ease-out;
  line-height: 1.5;
  pointer-events: none;
}

@keyframes fadeInSubtitle {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Listener badge in viewers sheet */
.story-voice-listener-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Video Story Trimmer Box */
.story-video-trimmer-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: 18px;
  padding: 1.1rem;
  margin-top: 0.9rem;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: fadeInTrimmer 0.3s ease-out;
}

@keyframes fadeInTrimmer {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.story-trimmer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.story-trimmer-title {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-trimmer-duration-badge {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.story-trimmer-video-preview {
  width: 100%;
  max-height: 180px;
  border-radius: 12px;
  background: #000;
  object-fit: contain;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-trimmer-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0.8rem;
}

.story-trimmer-slider {
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: #334155;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  accent-color: #a855f7;
}

.story-trimmer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #7e22ce);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.story-trimmer-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.story-trimmer-time-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Premium Video Upload Progress Card */
.story-upload-progress-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.08));
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-top: 0.9rem;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(168, 85, 247, 0.1);
  animation: fadeInProgress 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInProgress {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.story-upload-prog-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0.5rem 0;
  position: relative;
}

.story-upload-prog-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #ec4899, #10b981);
  background-size: 200% 100%;
  border-radius: 8px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
  animation: shimmerProgress 2s linear infinite;
}

@keyframes shimmerProgress {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* =========================================================
   👥 TWO-PERSON / SHARED STORY STYLING (COLLAB STORIES)
========================================================= */

/* Collab Toggle & Input in Add Story Modal */
.story-collab-toggle-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 14px;
  padding: 0.9rem;
  margin-bottom: 1rem;
  text-align: left;
  transition: all 0.25s ease;
}

.story-collab-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.story-collab-toggle-title {
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-collab-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: background 0.3s;
  cursor: pointer;
}

.story-collab-switch.active {
  background: #6366f1;
}

.story-collab-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.story-collab-switch.active::after {
  transform: translateX(20px);
}

.story-collab-partner-drawer {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInProgress 0.25s ease-out;
}

.story-partner-chip-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  margin-top: 6px;
}

.story-partner-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.story-partner-chip:hover, .story-partner-chip.selected {
  background: rgba(99, 102, 241, 0.3);
  border-color: #6366f1;
  color: #fff;
}

/* Dual Overlapping Avatars in Story Viewer */
.story-dual-avatar-wrap {
  position: relative;
  width: 54px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.story-dual-avatar-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #0f172a;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: #fff;
  background: #1e293b;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.story-dual-avatar-item.owner {
  left: 0;
  z-index: 2;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.story-dual-avatar-item.partner {
  left: 20px;
  z-index: 3;
  border-color: #6366f1;
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.story-dual-avatar-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.story-collab-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.35));
  border: 1px solid rgba(99, 102, 241, 0.6);
  color: #c7d2fe;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

/* Split View Stage in Story Viewer */
.story-split-view-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  gap: 8px;
  padding: 60px 10px 75px 10px;
  box-sizing: border-box;
  position: relative;
}

.story-split-card {
  flex: 1;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.story-split-card.owner-card {
  border-color: rgba(56, 189, 248, 0.45);
}

.story-split-card.partner-card {
  border-color: rgba(168, 85, 247, 0.45);
}

.story-split-connector-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 2px solid #0f172a;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.6);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}

.story-split-author-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 14px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.story-split-author-tag-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}

.story-split-media-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-split-text-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.story-split-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
}

/* Collab Invitation Callout in Story Viewer */
.story-collab-invite-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.2));
  border: 1.5px dashed rgba(99, 102, 241, 0.6);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  margin: auto 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: pulseInviteBanner 2.5s infinite;
}

@keyframes pulseInviteBanner {
  0%, 100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 25px rgba(168, 85, 247, 0.6); }
}

.btn-story-collab-respond {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
  transition: transform 0.2s;
}

.btn-story-collab-respond:hover {
  transform: scale(1.04);
}

/* Owner Approval & Partner Review Action Card */
.story-approval-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85));
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  text-align: center;
  margin: 0 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeInProgress 0.3s ease;
}

.story-approval-actions-row {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.btn-story-decline {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-story-decline:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}

.btn-story-approve {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.2s;
}

.btn-story-approve:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Partner Story Response Modal */
#partnerStoryResponseModal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(4, 5, 10, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
  box-sizing: border-box;
}

#partnerStoryResponseModal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Username / Handle Suggestions Styling */
.handle-suggestion-chip {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 4px 11px;
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.handle-suggestion-chip:hover {
  background: rgba(56, 189, 248, 0.35);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.handle-suggestion-chip:active {
  transform: scale(0.96);
}





