/*
Theme Name: Movie4u Pro
Theme URI: https://movie4u.local
Author: Antigravity AI
Author URI: https://movie4u.local
Description: Ultra-clean 4KHDHub style Dark Movie & Streaming WordPress Theme with pure mobile-first 2-column cards, zero poster clutter, and high speed.
Version: 2.6.1
License: GNU General Public License v2 or later
Tags: movies, 4khdhub, streaming, dark-mode, responsive, clean
Text Domain: movie4u
*/

/* ========================================================
   1. RESET & DARK THEME BASE (No White Background Bleed!)
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: #0d0e12 !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 15px;
  line-height: 1.5;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ========================================================
   2. HEADER (Exact 4KHDHub Mobile Layout)
   ======================================================== */
.hub-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #0d0e12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.hub-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.hub-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hub-brand-logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.hub-logo-gold {
  color: #ffb703;
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
}

.hub-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Expandable Search Drawer */
.hub-search-drawer {
  display: none;
  background: #14151c;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-search-drawer.active {
  display: block;
}

.hub-search-form {
  display: flex;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.hub-search-input {
  flex: 1;
  background: #090a0d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.hub-search-input:focus {
  border-color: #ffb703;
}

.hub-search-btn {
  background: #e50914;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

/* ========================================================
   3. MAIN CONTAINER & SECTION HEADER
   ======================================================== */
.hub-main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}

.hub-section-header {
  margin-bottom: 16px;
}

.hub-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

/* ========================================================
   4. MOVIE CARDS GRID (Exact 4KHDHub 2-Column Mobile)
   ======================================================== */
.hub-movie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
}

@media (min-width: 600px) {
  .hub-movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 14px;
  }
}

@media (min-width: 900px) {
  .hub-movie-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 16px;
  }
}

@media (min-width: 1100px) {
  .hub-movie-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 22px 18px;
  }
}

/* Movie Card */
.hub-movie-card {
  display: flex;
  flex-direction: column;
}

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

/* POSTER: Clean, Rounded, ZERO OVERLAY TEXT/BADGES */
.hub-poster-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #171821;
}

.hub-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.25s ease;
}

.hub-movie-card:hover .hub-card-img {
  transform: scale(1.03);
}

/* Card Details (Below Poster) */
.hub-card-details {
  padding-top: 8px;
}

.hub-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 6px 0;
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.hub-card-sub {
  font-size: 0.78rem;
  color: #8e8e9f;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hub-dot {
  color: #4b4b5e;
}

/* ========================================================
   5. SINGLE MOVIE PAGE (Clean, Centered, No Overlays, Responsive)
   ======================================================== */
.hub-single-post {
  background: transparent;
}

/* Clean Top Poster */
.hub-single-poster-wrap {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 18px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #171821;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

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

.hub-single-header {
  text-align: center;
  margin-bottom: 16px;
}

.hub-single-title {
  font-size: clamp(1.2rem, 3.2vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 8px;
  word-break: break-word;
}

.hub-single-sub {
  font-size: 0.85rem;
  color: #8e8e9f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hub-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px auto;
  max-width: 800px;
}

.hub-single-content {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}

.hub-single-content p {
  margin-bottom: 16px;
}

/* Movie Title inside Content (e.g. Hostel Haadsa (Hindi) Season 1 | ZEE5 Original 480p | 720p | 1080p) */
.hub-content-movie-heading,
.hub-single-content h1,
.hub-single-content h2 {
  font-size: clamp(1.15rem, 3.2vw, 1.48rem) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin: 18px 0 12px 0 !important;
  color: #ffffff !important;
  word-break: break-word !important;
  letter-spacing: -0.2px;
}

.hub-single-content h3 {
  font-size: clamp(1.02rem, 2.4vw, 1.22rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 16px 0 10px 0 !important;
  word-break: break-word !important;
}

.hub-single-content h4,
.hub-single-content h5,
.hub-single-content h6 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* Mobile Responsive Typography Adjustments */
@media (max-width: 768px) {
  .hub-single-title {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }

  .hub-content-movie-heading,
  .hub-single-content h1,
  .hub-single-content h2 {
    font-size: 1.18rem !important;
    line-height: 1.35 !important;
  }

  .hub-single-content h3 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  /* Prevent pasted oversized fonts from inflating layout on mobile */
  .hub-single-content [style*="font-size"] {
    font-size: 1.12rem !important;
    line-height: 1.4 !important;
  }

  .hub-single-content font[size] {
    font-size: 1.12rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 480px) {
  .hub-single-title {
    font-size: 1.16rem !important;
    line-height: 1.32 !important;
  }

  .hub-content-movie-heading,
  .hub-single-content h1,
  .hub-single-content h2 {
    font-size: 1.12rem !important;
    line-height: 1.32 !important;
    margin: 14px 0 10px 0 !important;
  }

  .hub-single-content {
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
  }
}

/* ========================================================
   6. SCREENSHOTS & DOWNLOAD BUTTONS (Matching Screenshot)
   ======================================================== */
/* Screenshots Collage */
.movie4u-screenshots-collage,
.hub-single-content .screenshots-wrap {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
  max-width: 700px !important;
  margin: 20px auto 30px !important;
  background: #000;
  padding: 6px;
  border-radius: 8px;
}

.movie4u-screenshots-collage img,
.hub-single-content img {
  border-radius: 6px;
  margin: 0 auto;
}

/* Neon Green Download Title (e.g. Hostel Haadsa S01 Complete Hindi WEB-DL 480p [810MB]) */
.movie4u-dl-title,
.hub-single-content .movie4u-dl-title,
.hub-single-content p.movie4u-dl-title {
  color: #22c55e !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  margin: 28px auto 12px auto !important;
  line-height: 1.4 !important;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
  word-break: break-word;
}

@media (max-width: 600px) {
  .movie4u-dl-title,
  .hub-single-content .movie4u-dl-title,
  .hub-single-content p.movie4u-dl-title {
    font-size: 0.98rem !important;
    margin: 22px auto 10px auto !important;
  }
}

/* 3D Gradient Download Now Button (Clean, NO white inner box, vibrant glow) */
.movie4u-dl-btn,
.hub-single-content a.movie4u-dl-btn,
.hub-single-content a.download-btn,
.hub-single-content a.btn-download,
.hub-single-content a[href*="download"],
.hub-single-content a[href*="drive.google"],
.hub-single-content a[href*="mega.nz"],
.hub-single-content a[href*="gofile"],
.hub-single-content a[href*="telegram"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 90% !important;
  max-width: 320px !important;
  margin: 12px auto 30px auto !important;
  padding: 14px 28px !important;
  background: linear-gradient(90deg, #16a34a 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.3px !important;
  text-align: center !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  border: none !important;
  outline: none !important;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35), 0 6px 25px rgba(29, 78, 216, 0.45) !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease !important;
}

.movie4u-dl-btn:hover,
.hub-single-content a.movie4u-dl-btn:hover,
.hub-single-content a.download-btn:hover {
  transform: translateY(-2px) scale(1.01) !important;
  filter: brightness(1.15) !important;
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.45), 0 8px 30px rgba(29, 78, 216, 0.6) !important;
  color: #ffffff !important;
}

/* REMOVE WHITE BOX & BACKGROUNDS ON DOWNLOAD BUTTON TEXT COMPLETELY */
.movie4u-dl-btn *,
.hub-single-content a.movie4u-dl-btn *,
.hub-single-content a.download-btn *,
.hub-single-content a.btn-download *,
.hub-single-content a[href*="download"] * {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
}

/* Colorful Text Formatting (Preserve when copying from movies4u) */
.hub-single-content span[style*="color"],
.hub-single-content font[color] {
  display: inline;
}

.hub-single-content .hl-gold,
.hub-single-content .highlight-gold {
  color: #ffb703 !important;
  font-weight: 700;
}

.hub-single-content .hl-red,
.hub-single-content .highlight-red {
  color: #ef4444 !important;
  font-weight: 700;
}

.hub-single-content .hl-green,
.hub-single-content .highlight-green {
  color: #22c55e !important;
  font-weight: 700;
}

/* Related section */
.hub-related-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================================
   7. SLIDE-OUT SIDE MENU DRAWER & BACKDROP
   ======================================================== */
.hub-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hub-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.hub-side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 310px;
  max-width: 85vw;
  height: 100vh;
  background: #111218;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hub-side-drawer.active {
  transform: translateX(0);
}

/* Drawer Header */
.hub-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0e12;
}

.hub-drawer-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.hub-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ef4444;
}

/* Quick Action CTAs (Telegram & App) */
.hub-drawer-quick-actions {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}

.hub-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.hub-btn-telegram {
  background: #0088cc;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
}

.hub-btn-app {
  background: #f59e0b;
  color: #0d0e12 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.hub-drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 16px;
}

/* Drawer Navigation List */
.hub-drawer-nav {
  padding: 10px 16px 30px;
  flex: 1;
}

.hub-nav-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #717182;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hub-drawer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-drawer-menu-list li {
  margin-bottom: 4px;
}

.hub-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.hub-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hub-menu-bullet {
  font-size: 1.1rem;
}

.hub-menu-tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-red {
  background: #e50914;
  color: #ffffff;
}

.tag-gold {
  background: #ffb703;
  color: #000000;
}

.tag-green {
  background: #16a34a;
  color: #ffffff;
}

/* Language Pill Buttons in Drawer */
.hub-drawer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-pill-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #1e2029;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hub-pill-btn:hover {
  background: #e50914;
  color: #ffffff;
  border-color: #e50914;
}

/* ========================================================
   8. PAGINATION & FOOTER
   ======================================================== */
.hub-pagination {
  margin-top: 36px;
  text-align: center;
}

.hub-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  background: #171821;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

.hub-pagination .page-numbers.current {
  background: #e50914;
}

.hub-footer {
  background: #090a0d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px 14px 24px;
  margin-top: 50px;
  text-align: center;
}

.hub-footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hub-footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.hub-footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 0.85rem;
  color: #8e8e9f;
}

.hub-footer-links a:hover {
  color: #ffffff;
}

.hub-footer-copy {
  font-size: 0.78rem;
  color: #555566;
}
