/* ==========================================================================
   MOVIENAS — FULL CINEMATIC ANIMATIONS & ULTRA MODERN DARK THEME CSS
   No Zoom-in/out • Pure Smooth Floats • Ambient Lighting • Native Player & 360p-1080p
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #060609;
  --bg-surface: #0e0e15;
  --bg-card: #14141f;
  --bg-card-hover: #1b1b2a;
  --bg-glass: rgba(14, 14, 21, 0.78);
  --bg-glass-strong: rgba(7, 7, 10, 0.95);

  --brand: #e50914;
  --brand-hover: #f40612;
  --brand-glow: rgba(229, 9, 20, 0.55);
  --brand-gradient: linear-gradient(135deg, #e50914 0%, #b8000b 100%);
  --brand-gradient-neon: linear-gradient(135deg, #ff1e27 0%, #cc000b 100%);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-gold: #fbbf24;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-green: #22c55e;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-active: #e50914;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 25px var(--brand-glow);
  --shadow-lg: 0 20px 45px -12px rgba(0, 0, 0, 0.95);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Disable Zoom Gesture and Text Size Jumps */
html, body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(229, 9, 20, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #060609;
}
::-webkit-scrollbar-thumb {
  background: #20202e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  color: inherit;
  outline: none;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.55rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(8, 8, 14, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(6, 6, 10, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.45rem 2.2rem;
  border-bottom: 1px solid rgba(229, 9, 20, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(229, 9, 20, 0.12);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  text-transform: uppercase;
}

.brand-logo .logo-icon {
  width: 30px;
  height: 30px;
  background: var(--brand-gradient-neon);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px var(--brand-glow);
  font-size: 0.82rem;
  transition: transform var(--transition-fast);
}

.brand-logo .logo-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 22px rgba(229, 9, 20, 0.8);
}

.brand-logo:hover .logo-icon {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(229, 9, 20, 0.8);
}

.brand-logo .logo-tag {
  color: var(--brand);
  text-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--brand);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.search-box input {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.42rem 1rem 0.42rem 2.3rem;
  font-size: 0.82rem;
  color: #fff;
  width: 190px;
  height: 34px;
  transition: all var(--transition-normal);
}

.search-box input:focus {
  width: 250px;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--brand);
  box-shadow: 0 0 18px var(--brand-glow);
}

.search-box i.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  pointer-events: none;
}

.watchlist-btn-badge {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.watchlist-btn-badge:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--brand);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.35);
}

.badge-count {
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.18rem 0.52rem;
  line-height: 1;
  box-shadow: 0 0 10px var(--brand-glow);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 550px;
  display: flex;
  align-items: flex-end;
  padding: 4rem 3.8rem 7rem;
  background-size: cover;
  background-position: center 25%;
  overflow: hidden;
  animation: fadeIn 0.8s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(6, 6, 9, 0.98) 0%, rgba(6, 6, 9, 0.86) 45%, rgba(6, 6, 9, 0.25) 80%, rgba(6, 6, 9, 0.82) 100%),
    linear-gradient(to top, var(--bg-main) 0%, rgba(6, 6, 9, 0.6) 40%, rgba(6, 6, 9, 0.2) 100%),
    linear-gradient(to bottom, rgba(6, 6, 9, 0.85) 0%, transparent 25%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-brand {
  background: var(--brand-gradient-neon);
  color: #fff;
  box-shadow: 0 0 14px var(--brand-glow);
}

.glow-pulse {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 12px rgba(229, 9, 20, 0.4); }
  50% { box-shadow: 0 0 25px rgba(229, 9, 20, 0.85); }
  100% { box-shadow: 0 0 12px rgba(229, 9, 20, 0.4); }
}

.badge-type-movie {
  background: rgba(229, 9, 20, 0.15);
  color: #ff5555;
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.badge-type-series {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-type-shortdrama {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.badge-rating {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.badge-quality {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.badge-meta {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 1.15rem;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
}

.hero-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.genre-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.genre-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: var(--brand);
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.68;
  color: #cbd5e1;
  margin-bottom: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-gradient-neon);
  color: #fff;
  box-shadow: 0 4px 20px var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--brand-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   MAIN SECTIONS & CAROUSELS
   ========================================================================== */
.main-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.8rem 4.5rem;
  position: relative;
  z-index: 10;
}

.content-section {
  margin-top: 3.2rem;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

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

.section-title-bar {
  width: 4px;
  height: 1.45rem;
  background: var(--brand-gradient);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--brand-glow);
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.carousel-controls {
  display: flex;
  gap: 0.55rem;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.carousel-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--brand-glow);
}

.carousel-track {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.6rem 0.2rem 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   POSTER CARD (NO ZOOM-IN / ZOOM-OUT - PURE SMOOTH FLOAT & GLOW)
   ========================================================================== */
.card-poster {
  flex: 0 0 200px;
  width: 200px;
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  border: 1px solid var(--border-card);
}

/* HOVER: Smooth upward float & neon glow */
.card-poster:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.9), 0 0 20px rgba(229, 9, 20, 0.35);
  border-color: var(--border-active);
  z-index: 5;
}

.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 3;
}

.card-title-link:hover {
  color: var(--brand);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-color: #101018;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.96);
  transition: filter var(--transition-normal);
}

.card-poster:hover .card-image-wrap img {
  filter: brightness(1.06);
}

.card-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.card-overlay-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 9, 0.95) 0%, rgba(6, 6, 9, 0.35) 50%, rgba(6, 6, 9, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.card-poster:hover .card-overlay-hover {
  opacity: 1;
}

.card-hover-play {
  width: 50px;
  height: 50px;
  background: var(--brand-gradient-neon);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 0 25px var(--brand-glow);
  transition: transform var(--transition-fast);
}

.card-poster:hover .card-hover-play {
  transform: translateY(-2px);
}

.card-info {
  padding: 0.9rem;
  background: var(--bg-card);
}

.card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.4rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CONTINUE WATCHING & WATCHLIST CARDS
   ========================================================================== */
.cw-card {
  flex: 0 0 270px;
  width: 270px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.cw-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(229, 9, 20, 0.3);
}

.cw-thumb {
  position: relative;
  width: 100%;
  height: 145px;
  overflow: hidden;
  background: #101018;
}

.cw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cw-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.cw-card:hover .cw-play-overlay {
  opacity: 1;
}

.cw-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.cw-progress-fill {
  height: 100%;
  background: var(--brand-gradient);
  box-shadow: 0 0 8px var(--brand-glow);
}

.cw-info {
  padding: 0.85rem;
}

.cw-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-episode {
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ==========================================================================
   SEARCH RESULTS GRID
   ========================================================================== */
.search-page-container {
  max-width: 1440px;
  margin: 6.5rem auto 4.5rem;
  padding: 0 2.8rem;
}

.search-header-bar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.search-input-large-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 850px;
}

.search-input-large {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.4rem 1.15rem 3.6rem;
  font-size: 1.15rem;
  color: #fff;
  transition: all var(--transition-normal);
}

.search-input-large:focus {
  border-color: var(--brand);
  box-shadow: 0 0 25px var(--brand-glow);
}

.search-input-large-wrap i.search-icon-lg {
  position: absolute;
  left: 1.4rem;
  font-size: 1.3rem;
  color: var(--text-muted);
}

.search-clear-btn {
  position: absolute;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.filter-pill.active {
  background: var(--brand-gradient-neon);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px var(--brand-glow);
}

.responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.6rem;
}

/* ==========================================================================
   DETAIL PAGE
   ========================================================================== */
.detail-header-backdrop {
  position: relative;
  width: 100%;
  min-height: 600px;
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: flex-end;
  padding: 8.5rem 3.5rem 4.5rem;
  animation: fadeIn 0.8s ease;
}

.detail-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(6, 6, 9, 0.98) 0%, rgba(6, 6, 9, 0.88) 45%, rgba(6, 6, 9, 0.35) 100%),
    linear-gradient(to top, var(--bg-main) 0%, rgba(6, 6, 9, 0.7) 40%, rgba(6, 6, 9, 0.25) 100%),
    linear-gradient(to bottom, rgba(6, 6, 9, 0.9) 0%, transparent 20%);
  pointer-events: none;
}

.detail-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 3.5rem;
  align-items: flex-start;
  animation: slideUpFade 0.6s ease;
}

.detail-poster-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

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

.detail-poster-actions {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--bg-card);
}

.detail-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.detail-title {
  font-size: 2.9rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
}

.detail-synopsis-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.detail-synopsis-text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #cbd5e1;
  max-width: 880px;
}

.detail-dubs-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.dubs-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.dubs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dub-pill {
  font-size: 0.82rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dub-pill:hover, .dub-pill.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
}

/* SEASON & EPISODE SECTION */
.seasons-section {
  max-width: 1440px;
  margin: 3.5rem auto 4.5rem;
  padding: 0 3.5rem;
}

.season-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.2rem;
}

.season-tab {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.season-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.season-tab.active {
  background: var(--brand-gradient-neon);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px var(--brand-glow);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 1.1rem;
}

.episode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
}

.episode-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 9, 20, 0.25);
}

.episode-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.episode-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   NATIVE VIDEO PLAYER & STREAM SETTINGS BAR (360p - 1080p)
   ========================================================================== */
.player-page-container {
  max-width: 1400px;
  margin: 1.25rem auto 3.5rem;
  padding: 0 2.5rem;
  animation: fadeIn 0.6s ease;
}

.player-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.player-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.player-back-btn:hover {
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 14px var(--brand-glow);
}

.player-title-info {
  text-align: center;
}

.player-main-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.player-sub-title {
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* NATIVE PLAYER CONTAINER */
.native-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.98), 0 0 35px rgba(229, 9, 20, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.native-player-container:hover {
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 1), 0 0 45px rgba(229, 9, 20, 0.38);
  border-color: rgba(229, 9, 20, 0.4);
}

.native-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* ==========================================================================
   SHORT DRAMA PORTRAIT PLAYER (9:16 VERTICAL STREAM SCREEN)
   ========================================================================== */
.player-page-container.is-shortdrama {
  max-width: 1240px;
}

.native-player-container.portrait-player {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 420px;
  max-height: 76vh;
  margin: 0 auto;
  background: #06060c;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(236, 72, 153, 0.22);
  border: 1px solid rgba(236, 72, 153, 0.28);
}

.native-player-container.portrait-player:hover {
  box-shadow: 0 25px 70px -5px rgba(0, 0, 0, 1), 0 0 45px rgba(236, 72, 153, 0.38);
  border-color: rgba(236, 72, 153, 0.45);
}

.native-player-container.portrait-player .native-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Quick Nav Buttons on Portrait Player */
.portrait-quick-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 420px;
}

.portrait-quick-nav .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
  border-radius: 9999px;
  font-weight: 600;
}

.portrait-ep-indicator {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(236, 72, 153, 0.25);
  white-space: nowrap;
}

/* Player Empty State (Graceful fallback) */
.player-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  height: 100%;
  background: rgba(18, 18, 28, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 2rem 1.5rem;
}

.player-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.7rem;
  color: #f59e0b;
}

.player-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.player-empty-desc {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.88rem;
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Short Drama Layout Grid */
.shortdrama-player-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.shortdrama-player-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.shortdrama-sidebar-col {
  width: 100%;
}

.shortdrama-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.6rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.text-pink-500 {
  color: #ec4899;
}

/* Desktop 2-column layout for Short Drama */
@media (min-width: 960px) {
  .shortdrama-player-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .shortdrama-player-col {
    position: sticky;
    top: 5rem;
  }

  .shortdrama-player-col .native-player-container.portrait-player {
    margin: 0;
  }

  .shortdrama-player-col .stream-toolbar-card {
    width: 100%;
    max-width: 420px;
    margin-top: 1.25rem;
    padding: 1.1rem 1.4rem;
  }

  .shortdrama-sidebar-col .series-nav-panel {
    margin-top: 0;
  }

  .shortdrama-sidebar-col .series-ep-grid {
    max-height: 65vh;
  }
}

/* Mobile responsive for Short Drama */
@media (max-width: 768px) {
  .native-player-container.portrait-player {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 16;
    max-height: calc(100vh - 160px);
    border-radius: var(--radius-md);
  }

  .portrait-quick-nav {
    max-width: 360px;
  }

  .shortdrama-ep-grid {
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: 0.45rem;
    max-height: 380px;
  }
}

/* STREAM TOOLBAR CARD */
.stream-toolbar-card {
  margin-top: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: slideUpFade 0.5s ease;
}

.stream-toolbar-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.toolbar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  min-width: 150px;
}

/* QUALITY PILLS (360p, 480p, 720p, 1080p) */
.quality-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quality-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.quality-pill:hover {
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.35);
}

@keyframes pulsePill {
  0%, 100% {
    box-shadow: 0 0 16px var(--brand-glow), 0 0 28px rgba(229, 9, 20, 0.25);
  }
  50% {
    box-shadow: 0 0 26px rgba(255, 30, 39, 0.85), 0 0 45px rgba(229, 9, 20, 0.45);
  }
}

.quality-pill.active {
  background: var(--brand-gradient-neon);
  color: #fff;
  border-color: transparent;
  animation: pulsePill 2.5s infinite ease-in-out;
  transform: translateY(-2px);
}

.pill-size {
  font-size: 0.72rem;
  font-weight: normal;
  opacity: 0.85;
}

/* SUBTITLE PILLS */
.sub-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sub-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sub-pill:hover {
  color: #fff;
  border-color: var(--accent-gold);
}

.sub-pill.active {
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
}

/* SERIES EPISODES NAV PANEL */
.series-nav-panel {
  margin-top: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.series-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.player-ep-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ep-nav-btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.series-nav-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.series-nav-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ep-chunk-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.65rem;
  margin-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.ep-chunk-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ep-chunk-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ep-chunk-tab.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.series-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 0.75rem;
}

.ep-badge-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.ep-badge-btn:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.ep-badge-btn.current {
  background: var(--brand-gradient-neon);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px var(--brand-glow);
}

.ep-badge-num {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.ep-badge-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.8;
  margin-top: 0.15rem;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  color: #fff;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 15px rgba(229, 9, 20, 0.3);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: slideUpFade 0.35s ease;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #050508;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2.8rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   FLOATING 3D BOTTOM NAVIGATION DOCK (Home, Search, Watchlist)
   ========================================================================== */
.bottom-nav-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: calc(100% - 2rem);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  animation: dockSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.bottom-nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(14, 14, 22, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.75rem;
  box-shadow: 0 16px 45px -4px rgba(0, 0, 0, 0.95), 0 0 25px rgba(229, 9, 20, 0.25);
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
}

.bottom-nav-inner:hover {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 20px 50px -6px rgba(0, 0, 0, 0.98), 0 0 35px rgba(229, 9, 20, 0.35);
  transform: translateY(-2px);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  min-width: 70px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: all var(--transition-normal);
}

.bottom-nav-item:hover {
  color: #fff;
  transform: translateY(-2px);
}

.bottom-nav-item.active {
  color: #fff;
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.35);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.25);
}

.bottom-nav-icon {
  font-size: 1.15rem;
  position: relative;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.bottom-nav-item.active .bottom-nav-icon {
  color: var(--brand);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--brand-glow));
}

.bottom-nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.bottom-nav-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 0.62rem;
  width: 17px;
  height: 17px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--brand-glow);
}

body {
  padding-bottom: 4.5rem;
}

.footer {
  padding-bottom: 5.5rem;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE — ULTRA REFINED MOBILE & TABLET LAYOUTS
   ========================================================================== */

/* TABLET (max-width: 1024px) */
@media (max-width: 1024px) {
  .navbar { padding: 1rem 2rem; }
  .hero { height: 75vh; padding: 4rem 2.5rem 5rem; }
  .hero-title { font-size: 2.6rem; }
  .main-container { padding: 0 2rem 3rem; }
  .detail-content-wrap { grid-template-columns: 240px 1fr; gap: 2.5rem; }
  .detail-title { font-size: 2.3rem; }
  .player-page-container { padding: 0 1.5rem; }
}

/* MOBILE PHONES (max-width: 768px) */
@media (max-width: 768px) {
  /* Prevent any horizontal overflow */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  /* 1. TOP NAVBAR ON MOBILE */
  .navbar {
    padding: 0.45rem 0.85rem;
    gap: 0.5rem;
    background: rgba(8, 8, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
  }

  .nav-left {
    gap: 0.5rem;
  }

  .brand-logo {
    font-size: 1.05rem;
    gap: 0.4rem;
  }

  .brand-logo .logo-icon,
  .brand-logo .brand-logo-img {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }

  /* Hide desktop nav links */
  .nav-links {
    display: none;
  }

  /* Mobile menu dropdown */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95);
    gap: 0.85rem;
  }

  .nav-right {
    gap: 0.5rem;
  }

  /* Compact mobile search box */
  .search-box {
    flex: 1;
    max-width: 130px;
  }

  .search-box input {
    width: 100%;
    padding: 0.45rem 0.75rem 0.45rem 2rem;
    font-size: 0.8rem;
  }

  .search-box input:focus {
    width: 100%;
  }

  .search-box i.search-icon {
    left: 0.65rem;
    font-size: 0.78rem;
  }

  /* Hide redundant watchlist button in top navbar on mobile (already in bottom dock!) */
  .navbar .watchlist-btn-badge {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }

  /* 2. HERO BANNER ON MOBILE */
  .hero {
    height: auto;
    min-height: 520px;
    padding: 5.5rem 1.15rem 4rem;
    background-position: center top;
  }

  .hero-overlay {
    background: 
      linear-gradient(to top, #060609 0%, rgba(6, 6, 9, 0.94) 40%, rgba(6, 6, 9, 0.6) 75%, rgba(6, 6, 9, 0.35) 100%),
      linear-gradient(to bottom, rgba(6, 6, 9, 0.85) 0%, transparent 30%);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badge-row {
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }

  .badge {
    font-size: 0.68rem;
    padding: 0.22rem 0.55rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.18;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
  }

  .hero-genres {
    gap: 0.35rem;
    margin-bottom: 0.85rem;
  }

  .genre-chip {
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    margin-bottom: 1.35rem;
  }

  /* Action buttons: Putar Sekarang full width, other two 50% side-by-side */
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
  }

  .hero-actions > a:first-child {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  .hero-actions > a:nth-child(2),
  .hero-actions > button {
    width: 100%;
    padding: 0.7rem 0.6rem;
    font-size: 0.82rem;
    gap: 0.4rem;
  }

  /* 3. MAIN CONTAINER & SECTIONS */
  .main-container {
    padding: 0 1rem 3rem;
  }

  .content-section {
    padding: 1.8rem 0;
  }

  .section-header {
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 1.18rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
  }

  /* Hide carousel arrow buttons on mobile (native touch swipe) */
  .carousel-controls {
    display: none;
  }

  .carousel-track {
    gap: 0.85rem;
    padding: 0.4rem 0 1.2rem;
    -webkit-overflow-scrolling: touch;
  }

  /* Posters on mobile: 135px width, perfect 2.5 cards visible swipe cue */
  .card-poster {
    flex: 0 0 135px;
    width: 135px;
    border-radius: 10px;
  }

  .card-poster:hover {
    transform: translateY(-4px); /* subtle lift on mobile */
  }

  .card-info {
    padding: 0.65rem 0.55rem;
  }

  .card-title {
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
  }

  .card-meta {
    font-size: 0.7rem;
  }

  .card-hover-play {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Continue watching card on mobile */
  .cw-card {
    flex: 0 0 220px;
    width: 220px;
  }

  .cw-info {
    padding: 0.65rem 0.75rem;
  }

  .cw-title {
    font-size: 0.82rem;
  }

  .cw-episode {
    font-size: 0.72rem;
  }

  /* 4. SEARCH PAGE ON MOBILE */
  .search-page-container {
    padding-top: 4.5rem;
  }

  .search-input-large-wrap {
    margin-bottom: 1.25rem;
  }

  .search-input-large {
    font-size: 0.95rem;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
  }

  .search-icon-lg {
    left: 1rem;
    font-size: 1.1rem;
  }

  .filter-pills {
    gap: 0.45rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill {
    padding: 0.4rem 0.95rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* Grid on mobile: 2 cards per row */
  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* 5. DETAIL PAGE ON MOBILE */
  .detail-header-backdrop {
    padding: 5.5rem 1rem 2.5rem;
    min-height: 460px;
    background-position: center top;
  }

  .detail-content-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-poster-col {
    display: flex;
    justify-content: center;
  }

  .detail-poster-card {
    max-width: 190px;
    width: 100%;
    margin: 0 auto;
  }

  .detail-poster-actions {
    padding: 0.85rem;
    gap: 0.55rem;
  }

  .detail-poster-actions .btn {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  .detail-info-col {
    gap: 1rem;
  }

  .detail-title {
    font-size: 1.65rem;
    text-align: center;
    letter-spacing: -0.5px;
  }

  .detail-info-col .hero-badge-row {
    justify-content: center;
  }

  .detail-info-col .hero-genres {
    justify-content: center;
  }

  .detail-synopsis-title {
    font-size: 1rem;
  }

  .detail-synopsis-text {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .seasons-section {
    padding: 0 1rem;
  }

  .season-tabs {
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
  }

  .season-tab {
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
  }

  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
  }

  .episode-card {
    padding: 0.75rem 0.35rem;
    border-radius: var(--radius-sm);
  }

  .episode-number {
    font-size: 1.15rem;
  }

  .episode-label {
    font-size: 0.65rem;
  }

  /* 6. PLAYER PAGE ON MOBILE */
  .player-page-container {
    margin: 0.75rem auto 1.5rem;
    padding: 0 0.75rem;
  }

  .player-top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .player-back-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .player-main-title {
    font-size: 0.95rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-sub-title {
    font-size: 0.7rem;
  }

  .player-top-bar .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  .native-player-container {
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  }

  .stream-toolbar-card {
    padding: 1rem;
    margin-top: 1rem;
    gap: 0.85rem;
    border-radius: var(--radius-md);
  }

  .stream-toolbar-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .toolbar-label {
    min-width: 100%;
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
  }

  .quality-pills-wrap,
  .sub-pills-wrap {
    gap: 0.4rem;
    width: 100%;
  }

  .quality-pill,
  .sub-pill {
    padding: 0.38rem 0.75rem;
    font-size: 0.76rem;
  }

  .series-nav-panel {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .series-nav-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .series-nav-title {
    font-size: 1rem;
  }

  .series-nav-header > div:last-child {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .series-nav-header > div:last-child .btn {
    flex: 1;
    justify-content: center;
    padding: 0.55rem;
    font-size: 0.8rem;
  }

  .series-ep-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.45rem;
    max-height: 350px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px;
  }

  .ep-badge-btn {
    height: 44px;
    border-radius: 8px;
  }

  .ep-badge-num {
    font-size: 1rem;
  }

  .ep-badge-lbl {
    font-size: 0.58rem;
  }

  /* 7. FLOATING BOTTOM DOCK ON MOBILE */
  .bottom-nav-dock {
    bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 1.5rem);
    max-width: 360px;
    z-index: 1001;
  }

  .bottom-nav-inner {
    width: 100%;
    justify-content: space-around;
    padding: 0.45rem 0.5rem;
    background: rgba(14, 14, 22, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(229, 9, 20, 0.25);
  }

  .bottom-nav-item {
    min-width: unset;
    flex: 1;
    padding: 0.35rem 0.4rem;
  }

  .bottom-nav-icon {
    font-size: 1.1rem;
  }

  .bottom-nav-label {
    font-size: 0.68rem;
  }

  /* 8. FOOTER ON MOBILE */
  .footer {
    padding: 2.5rem 1rem 6rem;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* EXTRA SMALL PHONES (max-width: 380px) */
@media (max-width: 380px) {
  .brand-logo span {
    font-size: 1rem;
  }

  .search-box {
    max-width: 105px;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .card-poster {
    flex: 0 0 120px;
    width: 120px;
  }

  .series-ep-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================
   TOP INSTANT PROGRESS BAR (YouTube Style)
   ========================================== */
.top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #ff0a1e, #ff6b6b, #ffd700);
  box-shadow: 0 0 10px rgba(255, 10, 30, 0.8), 0 0 5px rgba(255, 215, 0, 0.6);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: width 0.18s ease-out, opacity 0.2s ease;
}

/* ==========================================
   CARD QUICK WATCHLIST BUTTON
   ========================================== */
.card-quick-watchlist {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 12;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.85;
  transition: all var(--transition-fast);
}

.card-quick-watchlist:hover {
  opacity: 1;
  transform: scale(1.15);
  background: rgba(229, 9, 20, 0.9);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

.card-quick-watchlist.active {
  opacity: 1;
  background: rgba(229, 9, 20, 0.95);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

/* ==========================================
   ACTIVE WATCHLIST BUTTON STATE
   ========================================== */
.btn-watchlist-active {
  border-color: var(--brand) !important;
  background: rgba(229, 9, 20, 0.15) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.25) !important;
}

/* ==========================================================================
   HIGH-PERFORMANCE HARDWARE-ACCELERATED SLIDE MOVE & TACTILE THICKNESS (ANTI-LAG)
   ========================================================================== */
.card-poster, .btn, .filter-pill, .quality-pill, .sub-pill, .ep-badge-btn, .cw-card, .episode-card, .carousel-btn, .dub-pill, .season-tab {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Card Poster: Smooth slide move + tactile thickness */
.card-poster {
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 3.5px solid rgba(255, 255, 255, 0.16) !important;
  transition: transform 0.22s cubic-bezier(0.2, 0.85, 0.25, 1),
              border-color 0.2s ease,
              border-bottom-color 0.2s ease,
              background-color 0.2s ease !important;
}

.card-poster:hover {
  transform: translate3d(0, -7px, 0) !important;
  border-color: rgba(229, 9, 20, 0.65) !important;
  border-bottom-color: #e50914 !important;
  background-color: #1a1a28 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8) !important;
}

/* Buttons: Tactile depth thickness + move slide */
.btn {
  border: 1.5px solid transparent !important;
  border-bottom: 3.5px solid rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.18s cubic-bezier(0.2, 0.85, 0.25, 1),
              border-color 0.18s ease,
              opacity 0.18s ease !important;
}

.btn:hover {
  transform: translate3d(0, -2.5px, 0) !important;
}

.btn:active {
  transform: translate3d(0, 1.5px, 0) !important;
  border-bottom-width: 1.5px !important;
}

.btn-primary {
  border-color: rgba(255, 255, 255, 0.15) !important;
  border-bottom: 3.5px solid #8b0008 !important;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4) !important;
}

.btn-primary:hover {
  border-bottom-color: #ff1e27 !important;
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6) !important;
}

.btn-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 3.5px solid rgba(255, 255, 255, 0.22) !important;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  border-bottom-color: #e50914 !important;
}

/* Carousel buttons */
.carousel-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 3px solid rgba(255, 255, 255, 0.22) !important;
  transition: transform 0.18s cubic-bezier(0.2, 0.85, 0.25, 1),
              border-color 0.18s ease,
              background-color 0.18s ease !important;
}

.carousel-btn:hover {
  transform: translate3d(0, -2.5px, 0) !important;
  border-color: #e50914 !important;
  border-bottom-color: #ff1e27 !important;
}

/* Continue watching cards */
.cw-card {
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 3.5px solid rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.22s cubic-bezier(0.2, 0.85, 0.25, 1),
              border-color 0.2s ease,
              border-bottom-color 0.2s ease !important;
}

.cw-card:hover {
  transform: translate3d(0, -6px, 0) !important;
  border-color: #e50914 !important;
  border-bottom-color: #ff1e27 !important;
}

/* Search filter pills */
.filter-pill {
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 3px solid rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.18s cubic-bezier(0.2, 0.85, 0.25, 1),
              border-color 0.18s ease,
              color 0.18s ease,
              background-color 0.18s ease !important;
}

.filter-pill:hover {
  transform: translate3d(0, -3px, 0) !important;
  border-color: rgba(229, 9, 20, 0.5) !important;
  border-bottom-color: #e50914 !important;
}

.filter-pill.active {
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-bottom: 3.5px solid #e50914 !important;
}

/* Detail Season tabs */
.season-tab {
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 3px solid rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.18s cubic-bezier(0.2, 0.85, 0.25, 1),
              border-color 0.18s ease !important;
}

.season-tab:hover {
  transform: translate3d(0, -2px, 0) !important;
  border-color: #e50914 !important;
  border-bottom-color: #ff1e27 !important;
}

.season-tab.active {
  border-color: #e50914 !important;
  border-bottom: 3.5px solid #e50914 !important;
}

/* Episode cards in detail */
.episode-card {
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 3px solid rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.18s cubic-bezier(0.2, 0.85, 0.25, 1),
              border-color 0.18s ease,
              background-color 0.18s ease !important;
}

.episode-card:hover {
  transform: translate3d(0, -3.5px, 0) !important;
  border-color: #e50914 !important;
  border-bottom-color: #ff1e27 !important;
}

/* Quality pills */
.quality-pill {
  border: 1.5px solid rgba(255, 255, 255, 0.09) !important;
  border-bottom: 3px solid rgba(255, 255, 255, 0.15) !important;
  transition: transform 0.18s cubic-bezier(0.2, 0.85, 0.25, 1),
              border-color 0.18s ease,
              background-color 0.18s ease !important;
}

.quality-pill:hover {
  transform: translate3d(0, -2.5px, 0) !important;
  border-color: #e50914 !important;
  border-bottom-color: #ff1e27 !important;
}

.quality-pill.active {
  border-color: #e50914 !important;
  border-bottom: 3.5px solid #e50914 !important;
}

/* Episode badges in Player */
.ep-badge-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 3px solid rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.18s cubic-bezier(0.2, 0.85, 0.25, 1),
              border-color 0.18s ease,
              background-color 0.18s ease !important;
}

.ep-badge-btn:hover {
  transform: translate3d(0, -3px, 0) !important;
  border-color: #e50914 !important;
  border-bottom-color: #ff1e27 !important;
}

.ep-badge-btn.current {
  border-color: #e50914 !important;
  border-bottom: 3.5px solid #e50914 !important;
}

/* Page & Section Entrance Animations: Hardware-Accelerated Smooth Move */
@keyframes smoothMoveUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-content, .content-section, .search-page-container, .detail-content-wrap, .player-page-container {
  animation: smoothMoveUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* =========================================================
   DONGHUA SPOTLIGHT BANNER CARD
   ========================================================= */
.donghua-spotlight-card {
  margin: 2rem 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(30, 27, 75, 0.6) 50%, rgba(15, 17, 23, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.donghua-spotlight-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.donghua-spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}
.donghua-spotlight-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.donghua-spotlight-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* =========================================================
   COMMUNITY MODAL STYLES
   ========================================================= */
.community-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}
.community-modal-card {
  width: 100%;
  max-width: 680px;
  height: 85vh;
  max-height: 720px;
  background: #11141c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}
.community-header {
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #151923;
}
.community-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.community-badge-icon {
  font-size: 1.5rem;
}
.community-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}
.community-modal-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}
.community-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.community-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.community-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #131720;
  overflow-x: auto;
}
.community-tab-btn {
  flex: 1;
  padding: 0.75rem 0.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: all 0.2s;
}
.community-tab-btn:hover {
  color: #f1f5f9;
}
.community-tab-btn.active {
  color: #ef4444;
  border-bottom-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}
.tab-pill-count {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-weight: 700;
}
.community-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

/* Chat Styling */
.chat-tab-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chat-identity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 0.8rem;
  gap: 0.5rem;
}
.chat-identity-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.current-avatar-circle {
  font-size: 1.2rem;
}
.chat-username-input {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  color: #f8fafc;
  font-size: 0.8rem;
  width: 100%;
  max-width: 180px;
}
.admin-tag-pill, .chat-admin-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.avatar-picker-mini {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
}
.avatar-mini-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem;
}
.avatar-mini-btn.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}
.chat-messages-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-right: 0.4rem;
  min-height: 250px;
}
.chat-bubble-row {
  display: flex;
  gap: 0.6rem;
  max-width: 88%;
}
.chat-bubble-row.is-me {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-avatar-column {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.chat-bubble-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.6rem 0.8rem;
}
.chat-bubble-row.is-me .chat-bubble-content {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}
.chat-bubble-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.chat-author-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.chat-timestamp {
  font-size: 0.65rem;
  color: #64748b;
}
.chat-reply-preview {
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.25rem 0.5rem;
  border-left: 2px solid #ef4444;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}
.chat-shared-media-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}
.chat-message-text {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.4;
  word-break: break-word;
}
.chat-msg-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.chat-action-btn {
  background: none;
  border: none;
  font-size: 0.7rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}
.chat-action-btn:hover {
  color: #fff;
}
.replying-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  margin: 0.4rem 0;
  font-size: 0.75rem;
}
.replying-cancel-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
}
.chat-input-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.chat-main-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  color: #f8fafc;
  font-size: 0.85rem;
}
.chat-main-input:focus {
  outline: none;
  border-color: #ef4444;
}
.chat-send-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Report Form */
.report-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: #f8fafc;
  font-size: 0.85rem;
  font-family: inherit;
}
.report-input:focus {
  outline: none;
  border-color: #ef4444;
}
.report-form .form-group {
  margin-bottom: 0.85rem;
}
.report-form label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.report-success-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  font-size: 0.8rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.report-error-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  font-size: 0.8rem;
  color: #f87171;
}

/* Admin Panel */
.admin-login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem 1rem;
}
.admin-pin-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-align: center;
  width: 100%;
  max-width: 220px;
}
.admin-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.admin-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 0.5rem;
}
.admin-section-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.admin-report-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

/* Announcement Cards */
.announcement-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #3b82f6;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.8rem;
}
.announcement-card.type-warning {
  border-left-color: #f59e0b;
}
.announcement-card.type-update {
  border-left-color: #10b981;
}
.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.announcement-pill-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.announcement-pill-tag.type-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.announcement-pill-tag.type-update {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.announcement-date {
  font-size: 0.7rem;
  color: #64748b;
}
.announcement-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0.2rem 0 0.4rem;
}
.announcement-body {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

/* Announcement Top Banner */
.announcement-banner-wrapper {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.announcement-banner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 0.82rem;
}
.announcement-banner-bar.type-warning {
  background: rgba(120, 53, 15, 0.4);
  border-color: rgba(245, 158, 11, 0.3);
}
.announcement-banner-bar.type-update {
  background: rgba(6, 78, 59, 0.4);
  border-color: rgba(16, 185, 129, 0.3);
}
.ann-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ann-title {
  font-weight: 700;
  margin-right: 0.5rem;
  color: #fff;
}
.ann-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem;
}

/* =========================================================
   LUXURY MODERN COMMENTS & REVIEWS SUITE
   ========================================================= */
.comments-section-container {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.comments-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.comments-count-pill {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
  letter-spacing: 0.02em;
}

.comments-sort-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sort-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sort-tab-btn:hover {
  color: #f1f5f9;
}

.sort-tab-btn.active {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.35);
}

/* Modern Comment Composer Card */
.comment-composer-card {
  background: linear-gradient(135deg, rgba(22, 27, 42, 0.75) 0%, rgba(13, 16, 26, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: border-color 0.3s ease;
}

.comment-composer-card:focus-within {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.15);
}

.comment-composer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ef4444 0%, #3b82f6 50%, transparent 100%);
  opacity: 0.8;
}

.composer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.composer-author-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.composer-avatar-display {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
  border: 2px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
  transition: transform 0.2s ease;
}

.composer-avatar-display:hover {
  transform: scale(1.08) rotate(5deg);
}

.composer-name-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.composer-name-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  width: 170px;
  transition: all 0.2s ease;
}

.composer-name-input:focus {
  outline: none;
  border-color: #ef4444;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.composer-name-hint {
  font-size: 0.68rem;
  color: #64748b;
  padding-left: 0.2rem;
}

.composer-avatar-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.avatar-picker-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.avatar-picker-track {
  display: flex;
  gap: 0.3rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-choice-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-choice-btn:hover {
  transform: scale(1.2);
}

.avatar-choice-btn.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  transform: scale(1.15);
}

/* Quick Review Label Pills */
.quick-tags-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.quick-tags-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.quick-tag-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.quick-tag-pill:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f1f5f9;
}

.quick-tag-pill.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.35) 100%);
  border-color: #ef4444;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Textarea & Submit */
.comment-textarea-wrap {
  position: relative;
  background: rgba(10, 12, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem;
  transition: border-color 0.2s ease;
}

.comment-textarea-wrap:focus-within {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.08);
}

.comment-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 75px;
  font-family: inherit;
}

.comment-textarea::placeholder {
  color: #64748b;
}

.composer-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.composer-char-count {
  font-size: 0.72rem;
  color: #64748b;
}

.composer-submit-btn {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: 11px;
  padding: 0.55rem 1.3rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.composer-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.55);
}

.composer-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.composer-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================================================
   STREAM OF COMMENTS LIST
   ========================================================= */
.comments-stream-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-card-modern {
  background: linear-gradient(145deg, rgba(20, 24, 38, 0.65) 0%, rgba(13, 16, 26, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3.5px solid rgba(239, 68, 68, 0.5);
  border-radius: 18px;
  padding: 1.15rem 1.3rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
}

.comment-card-modern:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.35);
  border-left-color: #ef4444;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(239, 68, 68, 0.1);
}

.comment-card-modern.is-admin-card {
  border-left: 4px solid #ef4444 !important;
  background: linear-gradient(145deg, rgba(35, 20, 28, 0.75) 0%, rgba(18, 14, 25, 0.9) 100%) !important;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.comment-card-layout {
  display: flex;
  gap: 0.9rem;
}

.comment-avatar-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.comment-card-modern:hover .comment-avatar-bubble {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.comment-main-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.comment-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.comment-badge-admin {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.comment-date-tag {
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comment-body-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.55;
  margin: 0.25rem 0 0.65rem;
  word-break: break-word;
}

.comment-actions-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.2rem;
}

.comment-like-button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.comment-like-button:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f1f5f9;
  transform: translateY(-1px);
}

.comment-like-button.liked {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.comment-delete-button {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
  padding: 0;
}

.comment-delete-button:hover {
  color: #ef4444;
}

/* Empty State */
.comments-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.035) 100%);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.empty-state-icon-glow {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.2);
}

.empty-state-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.empty-state-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.45;
}

/* =========================================================
   COMMUNITY GROUP CHAT — WHATSAPP DARK THEME EXPLICIT FIX
   ========================================================= */
.community-modal-card {
  background: #111b21 !important;
  color: #e9edef !important;
}

@media (max-width: 640px) {
  .community-modal-backdrop {
    padding: 0 !important;
  }
  .community-modal-card {
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
  }
  .community-tab-content {
    padding: 0 !important;
  }
}

.group-chat-body {
  background-color: #0b141a !important;
  background-image: radial-gradient(circle at 50% 50%, rgba(18, 27, 34, 0.8) 0%, rgba(11, 20, 26, 0.98) 100%),
                    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
  background-size: 100% 100%, 24px 24px !important;
}

.chat-msg-row {
  display: flex !important;
  gap: 8px !important;
  align-items: flex-end !important;
  margin-bottom: 6px !important;
  width: 100% !important;
}

.chat-msg-row.is-other {
  justify-content: flex-start !important;
}

.chat-msg-row.is-me {
  justify-content: flex-end !important;
}

.chat-bubble-wrap {
  max-width: 85% !important;
  display: flex !important;
  flex-direction: column !important;
}

.chat-msg-row.is-me .chat-bubble-wrap {
  align-items: flex-end !important;
}

.chat-msg-row.is-other .chat-bubble-wrap {
  align-items: flex-start !important;
}

.chat-bubble-wa {
  padding: 8px 12px 6px 12px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  word-break: break-word !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

.chat-bubble-wa.chat-bubble-other {
  background: #202c33 !important;
  color: #e9edef !important;
  border-radius: 12px 12px 12px 2px !important;
}

.chat-bubble-wa.chat-bubble-me {
  background: #005c4b !important;
  color: #e9edef !important;
  border-radius: 12px 12px 2px 12px !important;
}

.chat-bubble-wa.chat-bubble-admin {
  border-left: 3.5px solid #ef4444 !important;
}

.wa-bubble-sender {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 3px !important;
  font-size: 11.5px !important;
}

.wa-sender-name {
  font-weight: 700 !important;
}

.wa-admin-pill {
  font-size: 9px !important;
  font-weight: 800 !important;
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.wa-bubble-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  margin-top: 2px !important;
  font-size: 10px !important;
  color: #8696a0 !important;
}

.chat-bubble-me .wa-bubble-meta {
  color: rgba(233, 237, 239, 0.65) !important;
}

.chat-reactions-row {
  display: flex !important;
  gap: 4px !important;
  margin-top: 3px !important;
  flex-wrap: wrap !important;
}

.reaction-pill,
.chat-reactions-row button {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  border-radius: 14px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
  outline: none !important;
}

.reaction-pill:hover,
.chat-reactions-row button:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.reaction-pill.active {
  background: rgba(229, 9, 20, 0.25) !important;
  border-color: rgba(229, 9, 20, 0.55) !important;
  color: #ffffff !important;
}

.chat-bubble-reply {
  background: rgba(0, 0, 0, 0.3) !important;
  border-left: 3px solid #00a884 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  margin-bottom: 6px !important;
  cursor: pointer !important;
}

.reply-author {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #00a884 !important;
}

.reply-text {
  font-size: 11px !important;
  color: #cbd5e1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}


