/*
Theme Name: VivamaxStream
Theme URI: https://vivamaxstream.com
Author: VivamaxStream Team
Author URI: https://vivamaxstream.com
Description: A fast, lightweight, dark modern movie streaming theme with automatic sliders, strong ad support, and SEO optimization. Features custom movie post type with genres: Vivamax, CinePop, Tbonx, Sinemax, and Enigmatic. Full responsive design with multiple ad placement areas.
Version: 4.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vivamaxstream
Tags: dark, movies, streaming, responsive, seo, entertainment
*/

/* =========================================================================
   PART A - CRITICAL CSS (Above the Fold)
   ========================================================================= */

/* A1. Tokens ------------------------------------------------------------- */
:root {
  --background: #09090b;
  --foreground: #f4f4f5;
  --card: #121216;
  --card-hover: #18181f;
  --surface-card: #121216;
  --primary: #e50914;
  --primary-hover: #f40612;
  --primary-foreground: #ffffff;
  --brand-red-dark: #b20710;
  --surface-dark: #0e0e11;
  --surface-elevated: #1a1a22;
  --border: #24242e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.75);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.25, 1, 0.5, 1);
  --ad-top-min-height: 90px;
}

/* A2. Reset & Base -------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--background);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  position: fixed;
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  z-index: 100000;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

@keyframes fadeIn {
  from { transform: translateY(8px); }
  to   { transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* A3. Clean Ad Containers ------------------------------------------------- */
.ad-slot,
.ad-banner-section,
.ad-banner,
.code-block {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  margin: 1.25rem auto;
  padding: 0;
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

.ad-banner-section:empty,
.ad-banner:empty,
.code-block:empty {
  display: none !important;
  margin: 0 !important;
}

.ad-top-header {
  min-height: var(--ad-top-min-height);
  width: 100%;
}

.right-col .code-block,
.right-col .ad-banner-section {
  margin: 12px auto !important;
  min-height: 0 !important;
}

/* A4. Header, Navigation & Search ----------------------------------------- */
.site-header {
  background-color: #0e0e11;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.25rem;
  flex-wrap: nowrap;
  min-height: 60px;
}

.site-logo {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary) !important;
  text-shadow: 0 0 16px rgba(229, 9, 20, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.site-logo:hover {
  opacity: 0.92;
}

.main-navigation {
  flex: 1;
  min-width: 0;
}

.main-navigation > ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
  white-space: nowrap;
}

.main-navigation a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: #fff;
}

.main-navigation a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.main-navigation li.menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-navigation li.menu-item-has-children > a::after {
  content: "";
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s ease;
}

.main-navigation li.menu-item-has-children:hover > a::after,
.main-navigation li.menu-item-has-children:focus-within > a::after,
.main-navigation li.menu-item-has-children.active > a::after {
  transform: rotate(180deg);
}

.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  z-index: 1000;
  transition: all 0.2s ease;
}

.main-navigation ul ul li { width: 100%; }

.main-navigation ul ul a {
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 4px;
}

.main-navigation ul ul a:hover {
  background: rgba(229, 9, 20, 0.12);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .main-navigation li.menu-item-has-children:hover > ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Search Form */
.search-form {
  display: flex;
  position: relative;
  flex-shrink: 0;
  min-width: 230px;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.search-form.expanded {
  position: fixed;
  top: 15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.search-form input[type="search"] {
  padding: 0.6rem 2.6rem 0.6rem 1rem;
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #fff;
  width: 100%;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.search-form.expanded input[type="search"] {
  padding: 1.25rem 3.5rem 1.25rem 1.75rem;
  font-size: 1.35rem;
  background: var(--surface-dark);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.search-form button {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form button:hover { color: var(--primary); }
.search-form.expanded button { right: 1.5rem; }

.search-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  z-index: 1999;
  cursor: pointer;
}

.search-backdrop.active {
  display: block;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 440px;
  overflow-y: auto;
  display: none;
  z-index: 101;
  box-shadow: var(--shadow-lg);
}

.search-suggestions.active { display: block; }

.search-suggestion-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover,
.search-suggestion-item.highlighted {
  background-color: var(--surface-elevated);
}

.search-suggestion-poster {
  width: 40px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}

.search-suggestion-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.search-suggestion-year {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.search-suggestion-empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

/* Mobile Toggles */
.mobile-menu-toggle,
.mobile-back-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .header-inner {
    gap: 0.5rem;
    padding: 0.6rem 0;
    flex-wrap: wrap;
  }
  .mobile-menu-toggle { display: flex !important; order: 3; }
  .mobile-back-toggle.visible { display: flex; order: 1; }
  .site-logo { order: 2; flex: 1; text-align: center; justify-content: center; font-size: 1.4rem; }
  .header-search-wrap { order: 4; width: 100%; margin-top: 4px; }
  .header-search-wrap .search-form { width: 100%; min-width: 0; }

  .main-navigation {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 260px;
    background-color: var(--surface-dark);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    z-index: 999;
    overflow-y: auto;
    padding: 0.75rem 0;
  }
  .main-navigation.active { transform: translateX(0); }

  .menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
  }
  .menu-backdrop.active { display: block; }

  .main-navigation > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-navigation li {
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }
  .main-navigation a {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    color: #fff;
  }
  .main-navigation ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    display: none;
    padding: 0.25rem 0 0.5rem 1rem;
  }
  .main-navigation li.menu-item-has-children.active > ul { display: flex; }
}

/* A5. Breadcrumbs & Homepage Banner --------------------------------------- */
.vmx-breadcrumbs {
  padding: 14px 0 6px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.vmx-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.vmx-breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.vmx-breadcrumbs a {
  color: var(--text-secondary);
}

.vmx-breadcrumbs a:hover {
  color: var(--primary);
}

.vmx-breadcrumbs .breadcrumb-sep {
  color: #52525b;
  font-size: 0.75rem;
  user-select: none;
}

.vmx-breadcrumbs .breadcrumb-current {
  color: #fff;
  font-weight: 600;
}

.featured-announcement-section { margin-bottom: 1rem; }

.homepage-main-title {
  display: block;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e4e4e7;
  background: var(--surface-card);
  padding: 10px 18px;
  margin: 16px auto 24px auto;
  border-radius: 999px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  letter-spacing: 0.3px;
  max-width: fit-content;
}

/* A6. Top of The Week Slider ---------------------------------------------- */
.top-slider-section {
  position: relative;
  width: 100%;
  margin-bottom: 3.5rem;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.08) 0%, var(--card) 100%);
  border-radius: 12px;
  border: 1px solid rgba(229, 9, 20, 0.22);
  overflow: hidden;
}

.top-slider-section .slider-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.top-slider-section .slider-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.top-slider-section .slider-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin: 0.5rem auto 0;
  background: var(--primary);
  border-radius: 2px;
}

.top-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.top-slider-wrapper:active { cursor: grabbing; }

.top-slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.top-slider-item {
  flex: 0 0 175px;
  width: 175px;
  max-width: 175px;
  display: flex;
}

@media (max-width: 768px) {
  .top-slider-section { padding: 1.25rem 0.75rem; margin-bottom: 2.5rem; }
  .top-slider-track { gap: 12px; }
  .top-slider-item { flex: 0 0 145px; width: 145px; max-width: 145px; }
}

@media (max-width: 480px) {
  .top-slider-item { flex: 0 0 132px; width: 132px; max-width: 132px; }
}

/* A7. Category Carousels (Hidden Scrollbar, Horizontal Swipe) ------------- */
.genre-section,
.category-carousel-section {
  margin-bottom: 3.5rem;
  position: relative;
}

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

.genre-section-title {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.genre-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background: var(--primary);
  border-radius: 2px;
}

.genre-section-header .see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.genre-section-header .see-all-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Wrapper: the scrolling viewport. Scrollbar hidden on every browser. */
.category-carousel-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 4px 2px 10px;
}

.category-carousel-wrapper::-webkit-scrollbar,
.category-carousel-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Track: one horizontal row, never wraps, never stacks */
.category-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 16px;
  width: max-content;
  min-width: 100%;
  padding: 0;
}

/* Item: fixed width so posters can never grow huge */
.category-carousel-track > .carousel-item {
  display: flex !important;
  flex: 0 0 175px !important;
  width: 175px !important;
  min-width: 175px !important;
  max-width: 175px !important;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .genre-section,
  .category-carousel-section { margin-bottom: 2.5rem; }
  .category-carousel-track { gap: 12px; }
  .category-carousel-track > .carousel-item {
    flex: 0 0 145px !important;
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
  }
}

@media (max-width: 480px) {
  .category-carousel-track > .carousel-item {
    flex: 0 0 134px !important;
    width: 134px !important;
    min-width: 134px !important;
    max-width: 134px !important;
  }
}

/* A8. Movie Cards & Aligned Metadata -------------------------------------- */
.movie-card,
.genre-featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  background: transparent;
  transition: transform var(--transition-fast);
}

.movie-card:hover,
.genre-featured-card:hover {
  transform: translateY(-4px);
}

/* 2:3 poster box */
.movie-card-image,
.featured-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

/* Thumb wrapper fills the poster box (no second border/ratio) */
.movie-card-thumb-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-card-thumb-wrap > a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Bottom gradient for badge readability */
.movie-card-image::after,
.featured-card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.movie-card-image img,
.featured-card-image img,
.movie-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.movie-card:hover .movie-card-image img,
.genre-featured-card:hover .featured-card-image img {
  transform: scale(1.05);
}

/* Stretched click link */
.movie-title a::after,
.featured-card-title a::after,
.movie-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* Poster badges */
.movie-hd-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fbbf24;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.movie-card .movie-genre-badge,
.genre-featured-card .movie-genre-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 5;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.movie-genre-badge.genre-vivamax      { background: #22c55e; color: #052e16; }
.movie-genre-badge.genre-cinepop      { background: #ec4899; color: #fff; }
.movie-genre-badge.genre-tbonx        { background: #dc2626; color: #fff; }
.movie-genre-badge.genre-sinemax      { background: #f59e0b; color: #111; }
.movie-genre-badge.genre-enigmatic    { background: #ea580c; color: #fff; }
.movie-genre-badge.genre-pinoy-movies { background: #06b6d4; color: #083344; }

/* Card body: title, optional episode row, meta pinned to bottom */
.movie-card-content,
.featured-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 10px 2px 2px;
  text-align: left;
  background: transparent;
  min-width: 0;
}

/* Title: always reserves 2 lines so rows below line up across cards */
.movie-card .movie-title,
.genre-featured-card .featured-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f4f4f6;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-title a,
.featured-card-title a {
  color: inherit;
}

.movie-title a:hover,
.featured-card-title a:hover {
  color: var(--primary);
}

/* Series status row: pill + episode count on one line */
.movie-card-episodes,
.featured-card-episodes {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.movie-status-pill,
.episode-status-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-completed,
.movie-status-pill.completed {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-ongoing,
.movie-status-pill.ongoing {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.movie-episode-count,
.episode-count {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Year • Runtime: tight, left aligned, pinned to the bottom of the card */
.movie-meta,
.featured-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: auto 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
  white-space: nowrap;
}

.movie-meta .movie-separator {
  font-size: 0.65rem;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .movie-card .movie-title,
  .genre-featured-card .featured-card-title {
    font-size: 0.86rem;
  }
}

/* Main Movie Grid (Archives & Catalogs) */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 2rem 0;
  width: 100%;
}

@media (max-width: 1200px) {
  .movie-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; }
}

@media (max-width: 768px) {
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
}

@media (max-width: 520px) {
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
}

/* =========================================================================
   PART B - SINGLE MOVIE, ARCHIVES, CAST & 2-COLUMN FOOTER
   ========================================================================= */

/* B1. Single Movie -------------------------------------------------------- */
.single-movie-header {
  width: 100%;
  text-align: center;
  margin: 14px 0 24px;
}

.single-movie-header .movie-title {
  display: block;
  text-align: center;
  margin: 0 auto;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
}

.single-movie-layout .single-movie-top {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  padding: 0 16px;
}

.single-movie-layout .video-player-wrap {
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  width: 100%;
}

.video-player iframe,
.video-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  display: flex;
  align-items: center;
  padding: 0.85rem 0;
}

.single-movie-columns {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  max-width: 1140px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.single-movie-layout .left-col .movie-poster-card {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  background: var(--surface-card);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.single-movie-layout .left-col .movie-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-movie-layout .left-col .movie-poster-card .movie-genre-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 10;
}

.single-movie-layout .meta-quick {
  margin-top: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.movie-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.movie-meta-list .meta-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.movie-meta-list .meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.movie-meta-list dt.meta-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.movie-meta-list dd.meta-value {
  font-weight: 600;
  color: #fff;
}

.movie-meta-list dd.meta-value a {
  color: var(--primary);
}

.movie-description {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.movie-description h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.movie-description p {
  color: #d4d4d8;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.movie-cast-section { margin: 24px 0; }
.movie-cast-section h2 { font-size: 1.15rem; margin-bottom: 12px; color: #fff; }

.movie-cast {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cast-member {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #e4e4e7;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.cast-member:hover {
  background-color: rgba(229, 9, 20, 0.14);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .single-movie-columns { grid-template-columns: 1fr; }
  .single-movie-layout .left-col .movie-poster-card { max-width: 240px; margin: 0 auto; }
}

.related-movies.full-width {
  max-width: 1140px;
  margin: 36px auto;
  padding: 0 16px;
}

.related-movies h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #fff;
}

/* Adjacent Nav */
.movie-adjacent-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 680px;
  max-width: calc(100% - 32px);
  margin: 28px auto;
}

.movie-adjacent-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  color: #e4e4e7;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.movie-adjacent-nav .adjacent-prev,
.movie-adjacent-nav .adjacent-next {
  flex: 1 1 0;
  max-width: 245px;
}

.movie-adjacent-nav .adjacent-prev:hover,
.movie-adjacent-nav .adjacent-next:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--surface-elevated);
}

.movie-adjacent-nav .adjacent-genre {
  flex: 0 0 auto;
  padding: 0 20px;
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
}

.movie-adjacent-nav .adjacent-genre:hover {
  background: var(--primary-hover);
}

@media (max-width: 600px) {
  .movie-adjacent-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "prev next" "genre genre";
    width: 100%;
  }
  .movie-adjacent-nav .adjacent-prev { grid-area: prev; max-width: none; }
  .movie-adjacent-nav .adjacent-next { grid-area: next; max-width: none; }
  .movie-adjacent-nav .adjacent-genre { grid-area: genre; width: 100%; }
}

/* Social Sharing */
.social-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.social-share-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.social-share-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.18s ease;
}

.social-share-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.ss-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* B2. Archives & A-Z Cast Directory --------------------------------------- */
.archive-container,
.genre-archive-container,
.cast-container {
  max-width: 1280px;
  margin: 1.5rem auto 3rem;
  padding: 0 16px;
}

.archive-header,
.genre-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-title,
.genre-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.archive-description,
.genre-description {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 860px;
}

.no-posts-found {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 2rem 0;
}

.no-posts-found h2 { font-size: 1.5rem; margin-bottom: 0.75rem; color: #fff; }
.no-posts-found p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Cast Directory */
.cast-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .cast-controls-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.az-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.az-letter {
  background: #1e1e24 !important;
  color: #ccc !important;
  border: 1px solid #2e2e38 !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.az-letter:hover,
.az-letter.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.cast-sort-dropdown select {
  background: #1e1e24;
  color: #fff;
  border: 1px solid #2e2e38;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  outline: none;
}

.cast-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 40px !important;
}

@media (min-width: 600px) { .cast-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 800px) { .cast-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (min-width: 1080px) { .cast-grid { grid-template-columns: repeat(6, 1fr) !important; } }

.cast-card {
  background: var(--surface-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: transform var(--transition-fast) !important;
}

.cast-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--primary) !important;
}

.cast-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 18px 10px !important;
  text-align: center !important;
  color: #fff !important;
}

.cast-avatar {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: #24242e !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
}

.cast-avatar .cast-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-name {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin-bottom: 4px !important;
}

.cast-count {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  background: #1e1e24 !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
}

/* B3. Pagination (Red Streaming Theme - Compact Direct-Input) -------------- */
.vmx-compact-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 3rem 0;
  padding: 0 12px;
  box-sizing: border-box;
}

.pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Nav & Page Buttons */
.pagination-controls .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background-color: var(--surface-card, #141418);
  border: 1px solid var(--border, #24242e);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  user-select: none;
  transition: all var(--transition-fast, 150ms ease);
}

/* Hover on Inactive Buttons */
.pagination-controls .page-btn:hover:not(.disabled):not(.current-page) {
  border-color: #e50914;
  color: #e50914;
  background-color: rgba(229, 9, 20, 0.08);
}

/* Active Current Page */
.pagination-controls .current-page {
  background-color: #e50914 !important;
  border-color: #e50914 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.45);
  cursor: default;
}

/* Total Page Button */
.pagination-controls .total-page {
  color: #d4d4d8;
}

/* Plain Text Slash Divider (No button box) */
.pagination-controls .page-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #71717a;
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
}

/* Disabled State */
.pagination-controls .page-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* Jump Form Container */
.pagination-jump-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* Red-Themed Number Input Box */
.page-jump-input {
  width: 54px;
  height: 38px;
  padding: 0 6px;
  background-color: #121216 !important;
  border: 1px solid rgba(229, 9, 20, 0.5) !important;
  border-radius: 6px;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
  -moz-appearance: textfield;
}

/* Hide Spin Arrows */
.page-jump-input::-webkit-outer-spin-button,
.page-jump-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Red Focus Glow */
.page-jump-input:focus {
  border-color: #e50914 !important;
  background-color: #000000 !important;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.35), 0 0 12px rgba(229, 9, 20, 0.2);
}

.page-jump-input::placeholder {
  color: #71717a;
}

/* Red "Go" Button */
.page-jump-btn {
  height: 38px;
  padding: 0 16px;
  background-color: #e50914;
  border: 1px solid #e50914;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
  transition: all 0.2s ease;
}

.page-jump-btn:hover {
  background-color: #b20710;
  border-color: #b20710;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.5);
  transform: translateY(-1px);
}

.page-jump-btn:active {
  transform: translateY(0);
}

/* Mobile Screens */
@media (max-width: 480px) {
  .vmx-compact-pagination {
    margin: 2rem 0;
    gap: 6px;
  }
  .pagination-controls .page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 0.85rem;
  }
  .page-jump-input {
    width: 46px;
    height: 34px;
    font-size: 0.85rem;
  }
  .page-jump-btn {
    height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
  }
}

/* B4. Comments & Lightbox ------------------------------------------------- */
.movie-comments-section {
  max-width: 1140px;
  margin: 40px auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.comments-area {
  text-align: left;
  margin: 2rem 0;
}

.comment-list { list-style: none; }
.comment-list li { margin-bottom: 1.25rem; }

.comment-body {
  background: var(--surface-card);
  padding: 1.25rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.movie-screenshot-section {
  margin: 32px 0;
  width: 100%;
  overflow: hidden;
}

.movie-screenshot-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.movie-screenshot-carousel::-webkit-scrollbar { display: none; }

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.image-lightbox img {
  max-width: min(1200px, 100%);
  max-height: 90vh;
  border-radius: 12px;
}

/* B5. 2-Column Responsive Footer (Explore left, Quick Links right) -------- */
.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 35px 0 25px;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 16px;
}

/* Left Column: Explore */
.footer-section.explore-section {
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 10px);
}

/* Right Column: Quick Links */
.footer-section.links-section {
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 10px);
}

/* Bottom Full-Width Column: Social */
.footer-section.social-section {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 15px;
  padding-top: 20px;
  border-top: 1px solid #141414;
}

.footer-section h3 {
  margin-bottom: 14px;
  font-size: clamp(0.85rem, 3.2vw, 1.05rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
  position: relative;
}

.footer-section a {
  color: #9ca3af;
  font-size: 0.92rem;
}

.footer-section a:hover {
  color: var(--primary);
}

/* Native WordPress Submenu in Footer */
.site-footer .sub-menu {
  display: none;
  list-style: none;
  padding-left: 12px;
  margin-top: 6px;
  border-left: 1px solid #262626;
}

.site-footer .sub-menu li {
  margin-bottom: 6px;
}

.site-footer .sub-menu a {
  font-size: 0.85rem;
  color: #888;
}

.site-footer .sub-menu a:hover {
  color: #fff;
}

.site-footer .menu-item-has-children:hover > .sub-menu,
.site-footer .menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.site-footer .menu-item-has-children > a {
  font-weight: 600;
  color: #eee;
}

.site-footer .menu-item-has-children > a::after {
  content: " \25BE";
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.site-footer .menu-item-has-children:hover > a::after,
.site-footer .menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-icons a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* =========================================================================
   PART C - ACCESSIBILITY: REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in,
  .movie-card:hover,
  .top-slider-item:hover {
    animation: none;
    transition: none;
    transform: none;
  }
  .category-carousel-wrapper { scroll-behavior: auto; }
}

/* =========================================================================
   PART D - Page Css
   ========================================================================= */

/* ==========================================================================
   WORDPRESS STATIC PAGES (Scoped to .page)
   ========================================================================== */

.page {
  --page-primary: #e50914;
  --page-primary-dark: #b20710;
  --page-primary-light: #ff3b45;
  --page-bg: #0e0e11;
  --page-text: #ffffff;
  --page-text-secondary: #a1a1aa;
  --page-border: #24242e;
  --page-card: #141418;
  --page-card-hover: #1c1c22;
  --page-radius-sm: 6px;
  --page-radius-md: 10px;
  --page-radius-lg: 16px;
  --page-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --page-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --page-transition: 0.2s ease;
  --page-max-width: 860px;

  background-color: var(--page-bg);
  color: var(--page-text);
  -webkit-font-smoothing: antialiased;
}

/* Enforce dark background on page wrappers */
html body.page,
body.page,
.page #primary,
.page .page-container,
.page article,
.page .entry-header,
.page .entry-content {
  background-color: var(--page-bg) !important;
}

/* Typography */
.page article {
  color: var(--page-text);
  line-height: 1.75;
}

.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4,
.page .entry-content h5,
.page .entry-content h6 {
  color: var(--page-text);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 2.2em 0 0.8em;
  scroll-margin-top: 100px;
}

.page .entry-content h1:first-child,
.page .entry-content h2:first-child,
.page .entry-content h3:first-child {
  margin-top: 0;
}

.page .entry-content h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.page .entry-content h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--page-border);
}
.page .entry-content h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.page .entry-content h4 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.page .entry-content h5 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--page-text-secondary);
}
.page .entry-content h6 {
  font-size: 0.95rem;
  color: var(--page-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page .entry-content p {
  margin: 0 0 1.3em;
  font-size: 1.05rem;
  color: var(--page-text);
}

.page .entry-content strong,
.page .entry-content b {
  font-weight: 700;
  color: #ffffff;
}

.page .entry-content hr {
  border: none;
  border-top: 1px solid var(--page-border);
  margin: 2.5em 0;
}

/* Page Header */
.page .entry-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  padding: 2.5rem 1.5rem 1.5rem;
  position: relative;
}

.page .entry-header .entry-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 1rem;
}

.page .entry-header::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 1.2rem auto 0;
  background: linear-gradient(90deg, transparent, var(--page-primary), transparent);
  border-radius: 2px;
}

/* Content Container */
.page .entry-content {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Links */
.page .entry-content a {
  color: var(--page-primary-light);
  text-decoration: underline;
  text-decoration-color: rgba(229, 9, 20, 0.4);
  text-underline-offset: 3px;
  transition: all var(--page-transition);
}

.page .entry-content a:hover {
  color: var(--page-primary);
  text-decoration-color: var(--page-primary);
}

/* Lists */
.page .entry-content ul,
.page .entry-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.6em;
  color: var(--page-text);
}

.page .entry-content ul { list-style: none; }

.page .entry-content ul > li {
  position: relative;
  padding-left: 0.4em;
  margin-bottom: 0.55em;
}

.page .entry-content ul > li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--page-primary);
}

.page .entry-content ol {
  list-style: none;
  counter-reset: page-ol-counter;
}

.page .entry-content ol > li {
  counter-increment: page-ol-counter;
  position: relative;
  padding-left: 0.4em;
  margin-bottom: 0.55em;
}

.page .entry-content ol > li::before {
  content: counter(page-ol-counter) ".";
  position: absolute;
  left: -1.6em;
  color: var(--page-primary);
  font-weight: 700;
  min-width: 1.4em;
}

/* Tables */
.page .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.8em;
  background: var(--page-card);
  border-radius: var(--page-radius-md);
  overflow: hidden;
  border: 1px solid var(--page-border);
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.page .entry-content thead th {
  background: #18181f;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 0.9em 1.1em;
  border-bottom: 2px solid var(--page-primary);
}

.page .entry-content tbody td {
  padding: 0.85em 1.1em;
  border-bottom: 1px solid var(--page-border);
  color: var(--page-text-secondary);
}

.page .entry-content tbody tr:hover {
  background: rgba(229, 9, 20, 0.05);
}

/* Quotes */
.page .entry-content blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 1.4em 1.8em;
  background: var(--page-card);
  border-left: 4px solid var(--page-primary);
  border-radius: 0 var(--page-radius-md) var(--page-radius-md) 0;
  color: var(--page-text-secondary);
  font-size: 1.05rem;
}

/* Buttons */
.page .entry-content .button,
.page .entry-content input[type="submit"],
.page .entry-content a.page-btn {
  display: inline-block;
  background: var(--page-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.75em 1.6em;
  border-radius: var(--page-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--page-transition);
}

.page .entry-content .button:hover,
.page .entry-content input[type="submit"]:hover,
.page .entry-content a.page-btn:hover {
  background: var(--page-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--page-shadow);
}

/* Form Inputs */
.page .entry-content input[type="text"],
.page .entry-content input[type="email"],
.page .entry-content input[type="url"],
.page .entry-content input[type="tel"],
.page .entry-content textarea,
.page .entry-content select {
  width: 100%;
  background: var(--page-card);
  border: 1px solid var(--page-border);
  border-radius: var(--page-radius-sm);
  color: #fff;
  padding: 0.75em 1em;
  font-size: 0.95rem;
  margin-bottom: 1.1em;
  transition: all var(--page-transition);
}

.page .entry-content input:focus,
.page .entry-content textarea:focus,
.page .entry-content select:focus {
  outline: none;
  border-color: var(--page-primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .page .entry-header {
    padding: 2rem 1rem 1.5rem;
  }
  .page .entry-content {
    padding: 0 1rem 3rem;
  }
}

/* Single Movie Desktop 2-Column Alignment */
.single-movie-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.single-movie-columns .left-col {
  width: 280px;
  flex-shrink: 0;
}

.single-movie-columns .right-col {
  flex: 1;
  min-width: 0;
}

.movie-top-ads {
  margin-bottom: 1.5rem;
  width: 100%;
}

/* Mobile Screens (Under 768px): Maintains Ads above Poster */
@media (max-width: 768px) {
  .single-movie-columns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .single-movie-columns .right-col {
    display: contents;
  }

  .single-movie-columns .movie-top-ads {
    order: 1;
    margin-bottom: 1rem;
  }

  .single-movie-columns .left-col {
    order: 2;
    width: 100%;
  }

  .single-movie-columns .right-col > *:not(.movie-top-ads) {
    order: 3;
  }
}

/* Category Archive Layout */
.category-archive-layout {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.category-header {
  margin-bottom: 1.5rem;
}

.category-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.page-indicator-badge {
  font-size: 0.9rem;
  color: var(--text-muted, #71717a);
  font-weight: 500;
  vertical-align: middle;
}

.no-movies-found {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--surface-card, #141418);
  border: 1px solid var(--border, #24242e);
  border-radius: 8px;
  margin: 2rem 0;
}

.no-movies-found h2 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.no-movies-found p {
  color: var(--text-secondary, #a1a1aa);
  margin-bottom: 1.5rem;
}