/* ==========================================================================
   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: 80px; /* Room for mobile floating dock */
}

@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;
}

.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;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-header-telegram:hover {
  background: #0ea5e9;
  color: #fff;
}

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

@media (max-width: 640px) {
  .header-search-bar {
    display: none;
  }
}

/* ==========================================================================
   Hero Featured Movie Banner
   ========================================================================== */
.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(2rem, 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: 1rem;
  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;
}

/* ==========================================================================
   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;
}

.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 */
.genre-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  scrollbar-width: none;
}

@media (max-width: 768px) {
  .genre-pills-bar {
    display: none !important;
  }
}

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

.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);
}

.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;
  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);
}

.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);
}

/* 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;
}

/* ==========================================================================
   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: 14px;
    left: 14px;
    right: 14px;
    max-width: 440px;
    margin: 0 auto;
    height: 62px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
  }

  .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: 42px;
    height: 42px;
    border-radius: 50%;
    margin-top: -12px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
    border: 2px 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;
}

.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;
}

.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;
}

@media (max-width: 820px) {
  .movie-details-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .movie-details-poster-wrap {
    max-width: 240px;
    margin: 0 auto;
  }
  .movie-meta-tags, .movie-details-actions {
    justify-content: center;
  }
}

.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 1rem;
    border-radius: var(--radius-lg);
  }
}

.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;
}

/* 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;
}

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

.blog-ss-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* 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;
}

.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;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

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

.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);
}
