/* ==========================================================================
   HDMoviesHub - Premium Cinematic Frontend Theme
   2:3 Poster Ratio • Mobile Floating Dock • Fully Responsive
   ========================================================================== */
@import url('local-fonts.css');

:root {
  --bg-body: #080c14;
  --bg-surface: #0f172a;
  --bg-card: #131c31;
  --bg-card-hover: #19243d;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.4);

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

  --accent-primary: #6366f1;
  --accent-hover: #4f46e5;
  --accent-gold: #f5c518;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 4px 20px rgba(99, 102, 241, 0.35);

  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 84px;
  /* Fallback room for mobile floating dock */
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

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

/* ==========================================================================
   Announcement Bar & Header Ads
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #4338ca, #6366f1, #3b82f6);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

.ad-slot {
  width: 100%;
  max-width: 1200px;
  margin: 1.25rem auto;
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-slot-header {
  margin: 1rem auto;
  padding: 0 1rem;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 68px;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
}

.logo-badge {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.brand-text-accent {
  background: linear-gradient(135deg, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* Custom Header Styles & Layouts */
.site-header.style-glassmorphic {
  background-color: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header.style-solid {
  background-color: #090d16;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.style-bordered {
  background-color: rgba(10, 15, 29, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header.not-sticky {
  position: relative;
}

.site-header.layout-left_logo_left_menu .nav-links {
  margin-right: auto;
  margin-left: 1.5rem;
}

.site-header.layout-split_balanced .header-container {
  justify-content: space-between;
}

/* ==========================================================================
   Header Dropdown Submenu (Zero-Flicker, High-Performance Smooth Design)
   ========================================================================== */
.nav-item.has-dropdown {
  position: relative;
  list-style: none !important;
  list-style-type: none !important;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.nav-link.dropdown-toggle .dropdown-caret {
  width: 12px;
  height: 12px;
  transition: transform 0.18s ease, color 0.18s ease;
  color: var(--text-dim, #64748b);
  flex-shrink: 0;
  pointer-events: none;
}

.nav-item.has-dropdown:hover>.dropdown-toggle .dropdown-caret,
.nav-item.has-dropdown.is-open>.dropdown-toggle .dropdown-caret {
  transform: rotate(180deg);
  color: #38bdf8;
}

/* Dropdown Card Container */
ul.dropdown-menu,
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 6px !important;
  display: none;
  z-index: 1000;
}

/* Pointer arrow pointing up to menu item */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 20px;
  width: 8px;
  height: 8px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(45deg);
}

/* Hover & Focus state - Clean 0.14s Fade, Zero Loop */
.nav-item.has-dropdown:hover>.dropdown-menu,
.nav-item.has-dropdown.is-open>.dropdown-menu,
.nav-item.has-dropdown:focus-within>.dropdown-menu {
  display: block;
  animation: menuFadeIn 0.14s ease-out;
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reset any default list style on li */
ul.dropdown-menu>li,
.dropdown-menu li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Dropdown Menu Item Links */
.dropdown-menu .dropdown-link,
.dropdown-menu a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #cbd5e1 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background 0.12s ease, color 0.12s ease !important;
}

/* Subtle dot indicator before each item */
.dropdown-menu .dropdown-link::before,
.dropdown-menu a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366f1;
  opacity: 0.4;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

/* Hover state on menu item */
.dropdown-menu .dropdown-link:hover,
.dropdown-menu a:hover {
  background: rgba(99, 102, 241, 0.16) !important;
  color: #ffffff !important;
}

.dropdown-menu .dropdown-link:hover::before,
.dropdown-menu a:hover::before {
  opacity: 1;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  transform: scale(1.2);
}

/* Custom Header CTA Button */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-header-cta:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.header-search-bar {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.header-search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: all var(--transition-fast);
}

.header-search-input:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.header-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

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

.btn-header-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-header-telegram:hover,
.btn-header-telegram:active {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.45);
}


@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 58px;
  }

  .header-container {
    padding: 0 0.85rem;
    gap: 0.5rem;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
  }

  .header-search-bar {
    display: none;
  }

  .header-right {
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Hero Featured Movie Banner
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-body);
}

.hero-slider-track {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 480px;
}

.hero-slide {
  grid-row: 1 / -1;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.02);
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* Arrows */
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.75;
}

.hero-slider-btn:hover {
  opacity: 1;
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(99, 102, 241, 1);
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-prev {
  left: 1.5rem;
}

.hero-slider-next {
  right: 1.5rem;
}

/* Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.hero-slider-dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--accent-primary, #6366f1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.hero-featured {
  position: relative;
  width: 100%;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  /* NO border-bottom */
}

.hero-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(8, 12, 20, 0.4) 0%,
      rgba(8, 12, 20, 0.75) 50%,
      rgba(8, 12, 20, 0.95) 85%,
      var(--bg-body) 100%),
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-featured::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(8, 12, 20, 0) 0%, var(--bg-body) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.4);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-meta .rating-pill {
  color: var(--accent-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-overview {
  max-width: 700px;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

@media (max-width: 768px) {

  .hero-slider-section,
  .hero-slider-track,
  .hero-slide,
  .hero-featured {
    min-height: 380px;
  }

  .hero-slider-btn {
    display: none;
  }

  .hero-slider-dots {
    bottom: 0.85rem;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
  }

  .hero-content {
    padding: 2rem 0.85rem 3.25rem;
  }

  .hero-title {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    margin-bottom: 0.5rem;
  }

  .hero-meta {
    gap: 0.45rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .hero-overview {
    font-size: 0.85rem;
    margin-bottom: 1.15rem;
    -webkit-line-clamp: 2;
  }

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

  .hero-actions .btn-action {
    flex: 0 0 auto;
    padding: 0.65rem 1.15rem;
    font-size: 0.86rem;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap !important;
  text-decoration: none;
}

.btn-action-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.btn-action-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-action-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  flex: 1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

/* Quick Genre Filter Bar - Touch-enabled on all devices */
.genre-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0.25rem 0 0.75rem;
  margin-bottom: 1.75rem;
  scrollbar-width: none;
}

.genre-pills-bar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .genre-pills-bar {
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    gap: 0.4rem;
  }
}

.genre-pill-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.genre-pill-btn:hover,
.genre-pill-btn.active {
  background-color: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* ==========================================================================
   2/3 Aspect Ratio Movie Poster Grid
   CRITICAL REQUIREMENT: Strict 2:3 aspect ratio thumbnails
   ========================================================================== */
.movies-grid {
  display: grid;
  /* 2 cols on mobile, up to 6 on full desktop */
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 540px) {
  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 820px) {
  .movies-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1080px) {
  .movies-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .movies-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

/* Movie Card */
.movie-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.movie-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* STRICT 2:3 Aspect Ratio Thumbnail Container */
.movie-poster-box {
  width: 100%;
  aspect-ratio: 2 / 3;
  /* STRICT 2:3 ASPECT RATIO */
  position: relative;
  overflow: hidden;
  background-color: #0b0f19;
}

.movie-poster-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* Badges on Poster */
.badge-overlay-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
}

.badge-quality-tag {
  background: rgba(16, 185, 129, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-rating-tag {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 197, 24, 0.4);
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

/* Play Icon Overlay on Hover */
.poster-play-hover {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 3;
}

.play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.6);
  transform: scale(0.85);
  transition: transform var(--transition-fast);
}

.movie-card:hover .poster-play-hover {
  opacity: 1;
}

.movie-card:hover .play-circle {
  transform: scale(1);
}

/* Card Content */
.movie-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.movie-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.35rem;
  transition: color var(--transition-fast);
}

.movie-card:hover .movie-title {
  color: #818cf8;
}

.movie-sub-info {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Proper Numbered Pagination
   CRITICAL REQUIREMENT: Clean pagination controls
   ========================================================================== */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 3rem 0 1.5rem;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-item {
  display: inline-flex;
}

.pagination-link,
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.pagination-link:hover,
.pagination-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.pagination-item.active .pagination-link {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.pagination-item.disabled .pagination-btn {
  opacity: 0.4;
  pointer-events: none;
}

.pagination-item.ellipsis {
  color: var(--text-dim);
  padding: 0 0.4rem;
  display: flex;
  align-items: center;
}

@media (max-width: 539px) {
  .main-wrapper {
    padding: 1.25rem 0.85rem;
  }

  .movies-grid {
    gap: 0.65rem;
  }

  .movie-card {
    border-radius: var(--radius-md);
  }

  .badge-overlay-top {
    top: 6px;
    left: 6px;
    right: 6px;
  }

  .badge-quality-tag {
    font-size: 0.58rem;
    padding: 2px 5px;
    border-radius: 4px;
  }

  .badge-rating-tag {
    font-size: 0.62rem;
    padding: 2px 5px;
    border-radius: 4px;
  }

  .movie-info {
    padding: 0.6rem 0.55rem;
  }

  .movie-title {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
  }

  .movie-sub-info {
    font-size: 0.7rem;
  }

  .pagination-container {
    margin: 2rem 0 1rem;
  }

  .pagination-list {
    gap: 0.25rem;
  }

  .pagination-link,
  .pagination-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
  }
}

/* ==========================================================================
   Mobile Bottom Floating Menu
   CRITICAL REQUIREMENT: Bottom floating menu on mobile
   ========================================================================== */
.mobile-floating-menu {
  display: none;
  /* Hidden on desktop */
}

@media (max-width: 768px) {
  .mobile-floating-menu {
    display: flex;
    position: fixed;
    bottom: 12px;
    /* Fallback for browsers without env() */
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    max-width: 440px;
    margin: 0 auto;
    height: 60px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.4rem;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    min-width: 48px;
    height: 48px;
    padding: 4px 6px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
  }

  .mobile-nav-item:active {
    transform: scale(0.92);
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
  }

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

  .mobile-nav-item.active {
    color: #818cf8;
  }

  .mobile-nav-item.search-btn {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    margin-top: -14px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.6);
    border: 3px solid var(--bg-surface);
  }
}

/* ==========================================================================
   Live Search Modal
   ========================================================================== */
.search-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1.25rem;
}

@media (max-width: 640px) {
  .search-modal-backdrop {
    padding: 10px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
}

.search-modal-backdrop.open {
  display: flex;
}

.search-modal-box {
  width: 100%;
  max-width: 640px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  animation: modalScale 0.2s ease;
}

@keyframes modalScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.search-modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: #fff;
  outline: none;
  font-family: inherit;
}

.search-modal-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
}

@media (max-width: 640px) {
  .search-modal-box {
    border-radius: var(--radius-lg);
    max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
  }

  .search-modal-header {
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }

  .search-modal-input {
    font-size: 1rem;
  }

  .search-modal-results {
    max-height: calc(100vh - 120px);
    flex: 1;
  }
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #fff;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-thumb {
  width: 44px;
  height: 66px;
  /* 2:3 aspect */
  object-fit: cover;
  border-radius: 6px;
  background-color: #1e293b;
}

/* ==========================================================================
   Movie Single Details Page
   ========================================================================== */
.movie-details-hero {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
  /* NO border-bottom to prevent any cut off / broken line */
}

.movie-details-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(8, 12, 20, 0.75) 0%,
      rgba(8, 12, 20, 0.88) 50%,
      rgba(8, 12, 20, 0.98) 85%,
      var(--bg-body) 100%);
  pointer-events: none;
}

.movie-details-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(8, 12, 20, 0) 0%, var(--bg-body) 100%);
  pointer-events: none;
}

.movie-details-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.movie-details-meta-list {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .movie-details-hero {
    padding: 2rem 0 1.5rem;
  }

  .movie-details-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
    padding: 0 0.85rem;
  }

  .movie-details-poster-wrap {
    max-width: 180px;
    margin: 0 auto;
  }

  .movie-details-title {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    margin-bottom: 0.5rem;
  }

  .movie-meta-tags,
  .movie-details-actions {
    justify-content: center;
  }

  .movie-meta-tags {
    gap: 0.4rem;
    font-size: 0.78rem;
    margin-bottom: 1rem;
  }

  .meta-pill {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
  }

  .movie-storyline {
    text-align: left;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    margin-bottom: 1.15rem;
  }

  .movie-details-meta-list {
    text-align: left;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
  }

  .movie-details-actions {
    gap: 0.65rem;
    width: 100%;
  }

  .movie-details-actions .btn-action {
    flex: 1 1 140px;
    padding: 0.65rem 1rem;
    font-size: 0.84rem;
  }
}

.movie-details-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  /* STRICT 2:3 */
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-details-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.movie-meta-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.meta-pill {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.meta-pill.rating {
  color: var(--accent-gold);
  border-color: rgba(245, 197, 24, 0.4);
  background: rgba(245, 197, 24, 0.12);
  font-weight: 700;
}

.meta-pill.quality {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
  font-weight: 700;
}

.movie-storyline {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* Download Section on Movie Page */
.downloads-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2.5rem 0;
}

.downloads-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quality-download-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dl-card-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.dl-card-info p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.dl-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-download-mirror {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-download-mirror:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

/* Download Table Style & Addons */
.downloads-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  margin-top: 1rem;
}

.downloads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 640px;
}

.downloads-table th {
  background-color: rgba(255, 255, 255, 0.04);
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.downloads-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: #fff;
}

.downloads-table tr:last-child td {
  border-bottom: none;
}

.downloads-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.addon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  margin: 3px;
}

.addon-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.addon-gdrive {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.addon-mega {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.addon-cloud {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
}

.addon-torrent {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
}

.addon-telegram {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
}

.addon-default {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

/* Specs Information Grid Box */
.info-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.spec-value {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}

.clickable-link,
.meta-text-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  display: inline;
}

.clickable-link:hover,
.meta-text-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Cast Star Pill (fallback if ever used elsewhere) */
.star-tag-pill {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
}

.star-tag-pill:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* ==========================================================================
   WordPress Style Movie Blog Post Layout & Sidebar
   ========================================================================== */
.blog-layout-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.25rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 992px) {
  .blog-layout-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.blog-main-content {
  width: 100%;
  min-width: 0;
  line-height: 1.7;
}

/* ==========================================================================
   Single Unified Card for Whole Post Body
   ========================================================================== */
.blog-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .blog-post-card {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .blog-info-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 1rem;
  }

  .blog-info-list {
    gap: 0.5rem;
  }

  .blog-info-list li {
    flex-direction: column;
    gap: 2px;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .blog-info-list .info-label {
    min-width: unset;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .blog-info-list .info-val {
    font-size: 0.88rem;
  }

  .post-section-title {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .post-seo-text,
  .post-site-seo-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .table-responsive {
    margin: 0.75rem 0;
  }

  .blog-specs-table {
    font-size: 0.8rem;
    min-width: 320px;
  }

  .blog-specs-table th,
  .blog-specs-table td {
    padding: 0.65rem 0.6rem;
  }

  .badge-size-pill {
    padding: 2px 8px;
    font-size: 0.74rem;
  }

  .blog-dl-card {
    padding: 1.15rem 0.85rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
  }

  .blog-dl-header {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .blog-dl-sub {
    font-size: 0.78rem;
    margin-bottom: 0.85rem;
  }

  .blog-dl-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .dl-post-form {
    display: flex;
    width: 100%;
    margin: 0;
  }

  .btn-blog-download {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    justify-content: center;
    min-height: 44px;
    /* Accessible mobile touch target */
  }
}

.post-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.02) 100%);
  margin: 2rem 0;
  border: none;
}

.post-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
  text-align: center;
}

/* 1. Blog Specs & Info List */
.blog-info-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.blog-info-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-info-list .info-label {
  color: var(--text-muted);
  font-weight: 700;
  min-width: 150px;
}

.blog-info-list .info-val {
  color: #f1f5f9;
  flex: 1;
}

/* 2. SEO & Site Info */
.post-seo-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.post-site-seo-text,
.post-site-seo-box {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 1rem 0;
  background: transparent;
  border: none;
  padding: 0;
}

.post-site-seo-text strong,
.post-site-seo-box strong {
  color: #10b981;
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

/* 3. Available Qualities & Sizes 3-Column Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

.blog-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-specs-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-specs-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  vertical-align: middle;
}

.blog-specs-table tbody tr:last-child td {
  border-bottom: none;
}

.blog-specs-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.col-quality {
  font-weight: 700;
  color: #fff;
}

.sub-episode-badge {
  display: block;
  font-size: 0.75rem;
  color: #818cf8;
  font-weight: 600;
  margin-top: 2px;
}

.badge-size-pill {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.quality-chip .chip-size {
  color: #38bdf8;
  font-weight: 700;
}

/* 4. Screenshots Section */
.blog-screenshots-section {
  margin-bottom: 2.5rem;
}

.blog-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.blog-screenshots-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.blog-ss-item {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0b0f19;
  display: block;
}

.blog-ss-item img,
.blog-screenshots-section img,
.blog-screenshots-grid img,
.blog-post-card .blog-ss-item img,
.custom-html-content-box .blog-ss-item img,
.post-screenshot-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: initial !important;
  display: block !important;
}

/* 5. Download Links Blocks: Movie-Name (Year) - Quality - Size */
.blog-download-section {
  margin: 2.5rem 0;
}

.blog-dl-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.blog-dl-header {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.blog-dl-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.blog-dl-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.dl-post-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.btn-blog-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: opacity var(--transition-fast), filter var(--transition-fast), transform var(--transition-fast);
}

.btn-blog-download:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.btn-dl-quick {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
  border: 1px solid rgba(254, 215, 170, 0.35);
}

.btn-dl-quick:hover {
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.65);
}

.btn-dl-gdrive {
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-dl-mega {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-dl-cloud {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.btn-dl-torrent {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.btn-dl-telegram {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.btn-dl-default {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* 6. Watch Online Embed Player */
.blog-watch-online-box {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
}

.embed-player-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-top: 1rem;
}

.embed-player-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 7. Sidebar Widgets */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

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

.sidebar-widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.widget-post-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.widget-post-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.widget-post-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.widget-post-thumb {
  width: 52px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.widget-post-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.widget-post-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.widget-post-item:hover .widget-post-title {
  color: #818cf8;
}

.widget-post-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.widget-rating-tag {
  color: var(--accent-gold);
  font-weight: 700;
}

.widget-quality-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
}

/* Category / Genre Cloud Widget */
.widget-genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.widget-genre-pill {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.widget-genre-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

.embed-player-responsive {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-top: 1rem;
}

.embed-player-responsive iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Summernote Content Container */
.custom-html-content-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.custom-html-content-box h2,
.custom-html-content-box h3,
.custom-html-content-box h4 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.custom-html-content-box ul,
.custom-html-content-box ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.custom-html-content-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.custom-html-content-box th,
.custom-html-content-box td {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
}

/* Screenshot Gallery */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.screenshot-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.screenshot-thumb:hover {
  border-color: var(--accent-primary);
}

/* Trailer Modal */
.trailer-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.trailer-modal-backdrop.open {
  display: flex;
}

.trailer-modal-content {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  position: relative;
}

.trailer-modal-content iframe {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: none;
}

.btn-close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.25rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 0.85rem 1.5rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
  }
}

/* WordPress-Style Admin Preview Mode Banner */
.admin-preview-banner {
  background: #1e1b4b;
  border: 1px solid #4338ca;
  color: #c7d2fe;
  padding: 0.85rem 1.25rem;
  margin: 1rem auto;
  max-width: 1240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .admin-preview-banner {
    margin: 0.75rem 0.85rem;
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
}