/**
 * Main Stylesheet - BollyFlix Design
 * 
 * Inspired by modern streaming platforms
 * 
 * @package BollyFlix
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
  /* Colors - Dark Theme */
  --color-primary: #00dc82;
  --color-primary-dark: #00c274;
  --color-primary-light: #1fe89b;

  --color-bg-dark: #0a0a0a;
  --color-bg-darker: #000000;
  --color-bg-card: #141414;
  --color-bg-hover: #1f1f1f;

  --color-text: #ffffff;
  --color-text-muted: #b3b3b3;
  --color-text-dark: #808080;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.04);

  /* Rating Colors */
  --color-rating-high: #00dc82;
  --color-rating-medium: #fbbf24;
  --color-rating-low: #ef4444;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Typography */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: "Netflix Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--color-bg-dark);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  color: var(--color-text-muted);
}

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

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

/* ==========================================================================
   Layout
   ========================================================================== */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  padding: var(--spacing-2xl) 0 0;
}

.container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

/* ==========================================================================
   Movie Grid
   ========================================================================== */

.bollyflix-movies-grid,
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

@media (min-width: 640px) {
  .bollyflix-movies-grid,
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (min-width: 1024px) {
  .bollyflix-movies-grid,
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (min-width: 1440px) {
  .bollyflix-movies-grid,
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

/* ==========================================================================
   Movie Card
   ========================================================================== */

.movie-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  background: var(--color-bg-card);
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  z-index: 10;
}

.movie-card-link {
  display: block;
  color: inherit;
}

.movie-card-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.movie-card:hover .poster-image {
  transform: scale(1.08);
}

/* Overlay */
.movie-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-md);
}

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

.play-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  font-size: 18px;
  color: var(--color-bg-dark);
  box-shadow: 0 0 20px rgba(0, 220, 130, 0.5);
}

.overlay-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  text-align: center;
}

/* Rating Badge */
.rating-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: 800;
  border: 2px solid;
}

.rating-badge.rating-high {
  color: var(--color-rating-high);
  border-color: var(--color-rating-high);
}

.rating-badge.rating-medium {
  color: var(--color-rating-medium);
  border-color: var(--color-rating-medium);
}

.rating-badge.rating-low {
  color: var(--color-rating-low);
  border-color: var(--color-rating-low);
}

.rating-icon {
  font-size: 14px;
}

/* New Badge */
.new-badge {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background: var(--color-primary);
  color: var(--color-bg-dark);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(0, 220, 130, 0.4);
}

/* Movie Card Content */
.movie-card-content {
  padding: var(--spacing-md);
}

.movie-card-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-dark);
}

.movie-card-meta > span {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.movies-section {
  margin-bottom: var(--spacing-3xl);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin: 0;
  color: var(--color-text);
}

.section-link {
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.section-link:hover {
  color: var(--color-primary-light);
  transform: translateX(5px);
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--color-border);
}

.page-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(
    135deg,
    var(--color-text) 0%,
    var(--color-text-muted) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 220, 130, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-3xl);
  /* padding: var(--spacing-3xl) 0 var(--spacing-xl); */
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-dark);
  font-size: var(--font-size-sm);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-bg-dark);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
  box-shadow: 0 0 20px rgba(0, 220, 130, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary-light);
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 220, 130, 0.5);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* ==========================================================================
   Pagination
   ========================================================================== */

.filter-group option {
  background: #fff;
  color: #000;
}
.btn-primary:hover {
  color: #000;
}

/* ==========================================================================
   Header Search - Modern Design
   ========================================================================== */

.header-search {
  position: relative;
  width: 100%;
  max-width: 285px;
  margin: 0 auto;
}

.search-form {
  width: 100%;
}

.search-form-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-form-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Search Icon (Left side) */
.search-form-wrapper .search-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 12px;
  transition: color 0.3s ease;
}

.search-form-wrapper:focus-within .search-icon {
  color: rgba(255, 255, 255, 0.9);
}

/* Search Input Field */
.search-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 0;
  width: 100%;
}

.search-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.search-field:focus::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Remove default search input clear button (webkit) */
.search-field::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* Search Submit Button */
.search-submit {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 8px;
}

.search-submit:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  /* transform: scale(1.05); */
}

.search-submit:active {
  transform: scale(0.95);
}

.search-submit svg {
  display: block;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .header-search {
    max-width: 100%;
    padding: 0 15px;
  }

  .search-form-wrapper {
    padding: 6px 12px;
  }

  .search-field {
    font-size: 14px;
  }

  .search-submit {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .search-form-wrapper .search-icon {
    margin-right: 8px;
  }

  .search-field {
    font-size: 13px;
  }
}

/* ==========================================================================
   Alternative Dark Theme (if needed)
   ========================================================================== */

.dark-theme .search-form-wrapper,
body.dark .search-form-wrapper {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .search-form-wrapper:focus-within,
body.dark .search-form-wrapper:focus-within {
  background: rgba(40, 40, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Light Theme Alternative
   ========================================================================== */

.light-theme .search-form-wrapper {
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

.light-theme .search-form-wrapper:focus-within {
  border-color: #00dc82;
  box-shadow: 0 0 0 3px rgba(0, 220, 130, 0.1);
}

.light-theme .search-field {
  color: #1a1a1a;
}

.light-theme .search-field::placeholder {
  color: #999999;
}

.light-theme .search-icon {
  color: #666666;
}

.light-theme .search-form-wrapper:focus-within .search-icon {
  color: #00dc82;
}

.light-theme .search-submit {
  background: #f5f5f5;
  color: #666666;
}

.light-theme .search-submit:hover {
  background: #00dc82;
  color: #ffffff;
}
.site-main {
  /* padding-top: 70px; */
}

/* ==========================================================================
   Search Results Page - Modern Design
   ========================================================================== */

.search-results-page {
  padding: 60px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
}

/* Search Header */
.search-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  border-radius: 50%;
  margin-bottom: 24px;
  color: #ffffff;
}

.search-header .page-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.search-query {
  color: #00dc82;
  font-weight: 800;
}

.search-results-count {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px 0;
}

.search-results-count strong {
  color: #00dc82;
  font-weight: 700;
}

/* Search Refine Form */
.search-refine-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.search-form-refine {
  width: 100%;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.search-input-group:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00dc82;
  box-shadow: 0 0 0 4px rgba(0, 220, 130, 0.2);
}

.search-input-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 12px;
}

.search-field-refine {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  padding: 12px 0;
}

.search-field-refine::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-btn-refine {
  flex-shrink: 0;
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 12px;
}

.search-btn-refine:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 220, 130, 0.4);
}

.search-btn-refine:active {
  transform: translateY(0);
}

/* Search Movie Grid */
.search-movie-grid {
  margin-bottom: 60px;
}

/* No Results */
.no-search-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results-content {
  max-width: 600px;
  margin: 0 auto 60px;
}

.no-results-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.3);
}

.no-results-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.no-results-message {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0 0 40px 0;
}

/* Search Suggestions */
.search-suggestions {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  text-align: left;
}

.search-suggestions h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 20px 0;
}

.search-suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-suggestions li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 0;
}

.search-suggestions li:last-child {
  margin-bottom: 0;
}

.search-suggestions li svg {
  flex-shrink: 0;
  color: #00dc82;
  margin-right: 12px;
}

/* Popular Movies Fallback */
.popular-movies-fallback {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* .popular-movies-fallback h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
} */

/* Search Pagination */
.search-pagination {
  margin-top: 60px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .search-results-page {
    padding: 40px 0;
  }

  .search-header {
    padding: 32px 16px;
    margin-bottom: 40px;
  }

  .search-header-icon {
    width: 64px;
    height: 64px;
  }

  .search-header-icon svg {
    width: 32px;
    height: 32px;
  }

  .search-header .page-title {
    font-size: 24px;
  }

  .search-results-count {
    font-size: 14px;
  }

  .search-input-group {
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .search-btn-refine {
    width: 100%;
    margin: 12px 0 0 0;
  }

  .no-results-icon {
    width: 80px;
    height: 80px;
  }

  .no-results-icon svg {
    width: 48px;
    height: 48px;
  }

  .no-results-content h2 {
    font-size: 24px;
  }

  .search-suggestions {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .search-header .page-title {
    font-size: 20px;
  }

  .search-field-refine {
    font-size: 14px;
  }
}

/* ==========================================================================
   404 ERROR PAGE - MODERN DESIGN
   ========================================================================== */

.error-404-page {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
}

.error-404-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   404 ICON
   ========================================================================== */

.error-404-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ==========================================================================
   ERROR CODE (Large 404)
   ========================================================================== */

.error-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.code-number {
  font-size: 120px;
  font-weight: 900;
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: pulse 2s ease-in-out infinite;
}

.code-number:nth-child(1) {
  animation-delay: 0s;
}

.code-number:nth-child(2) {
  animation-delay: 0.2s;
}

.code-number:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ==========================================================================
   ERROR TEXT
   ========================================================================== */

.error-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
}

.error-message {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 48px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SEARCH BOX
   ========================================================================== */

.error-search-box {
  margin-bottom: 40px;
}

.error-search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00dc82;
  box-shadow: 0 0 0 4px rgba(0, 220, 130, 0.2);
}

.search-input-wrapper .search-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 12px;
}

.search-input-wrapper .search-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  padding: 12px 0;
}

.search-input-wrapper .search-field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-input-wrapper .search-button {
  flex-shrink: 0;
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 12px;
}

.search-input-wrapper .search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 220, 130, 0.4);
}

/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.error-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 220, 130, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

/* ==========================================================================
   POPULAR MOVIES SECTION
   ========================================================================== */

.error-popular-movies {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.error-popular-movies .section-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 40px 0;
  text-align: center;
}

.error-popular-movies .movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  .error-404-page {
    padding: 60px 0;
  }

  .error-404-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
  }

  .error-404-icon svg {
    width: 150px;
    height: 150px;
  }

  .error-code {
    gap: 12px;
    margin-bottom: 24px;
  }

  .code-number {
    font-size: 80px;
  }

  .error-title {
    font-size: 28px;
  }

  .error-message {
    font-size: 16px;
    margin-bottom: 32px;
    padding: 0 20px;
  }

  .search-input-wrapper {
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .search-input-wrapper .search-button {
    width: 100%;
    margin: 12px 0 0 0;
  }

  .error-actions {
    flex-direction: column;
    padding: 0 20px;
  }

  .error-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .error-popular-movies {
    margin-top: 60px;
    padding-top: 60px;
  }

  .error-popular-movies .section-title {
    font-size: 24px;
  }

  .error-popular-movies .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .error-404-icon {
    width: 120px;
    height: 120px;
  }

  .error-404-icon svg {
    width: 120px;
    height: 120px;
  }

  .code-number {
    font-size: 60px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-message {
    font-size: 14px;
  }

  .search-input-wrapper .search-field {
    font-size: 14px;
  }

  .error-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.error-404-content > * {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.error-404-icon {
  animation-delay: 0.1s;
}
.error-code {
  animation-delay: 0.2s;
}
.error-title {
  animation-delay: 0.3s;
}
.error-message {
  animation-delay: 0.4s;
}
.error-search-box {
  animation-delay: 0.5s;
}
.error-actions {
  animation-delay: 0.6s;
}
.error-popular-movies {
  animation-delay: 0.7s;
}

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

/* ==========================================================================
   FOOTER - MODERN DESIGN WITH MENUS
   ========================================================================== */

.site-footer {
  background: #000000;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   FOOTER MAIN
   ========================================================================== */

.footer-main {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

/* ==========================================================================
   FOOTER ABOUT COLUMN
   ========================================================================== */

.footer-about {
  padding-right: 20px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo-text {
  font-size: 28px;
  font-weight: 800;
  color: #00dc82;
  text-decoration: none;
  display: inline-block;
}

.footer-logo .custom-logo {
  height: 40px;
  width: auto;
}

.footer-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 24px 0;
}

/* Social Media Links */
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #00dc82;
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   FOOTER COLUMNS
   ========================================================================== */

.footer-column {
  /* Each column styling */
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #00dc82;
}

/* Footer Menu */
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  /* display: inline-block; */
}

.footer-menu a:hover {
  color: #00dc82;
  padding-left: 8px;
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */

.footer-bottom {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright p,
.footer-credits p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright a,
.footer-credits a {
  color: #00dc82;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copyright a:hover,
.footer-credits a:hover {
  color: #00b86b;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 220, 130, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 220, 130, 0.6);
}

.back-to-top:active {
  transform: translateY(-2px);
}
ul.wp-block-list {
  padding-left: 20px;
  padding-bottom: 10px;
}
/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 40px 0 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-about {
    padding-right: 0;
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: 30px 0 20px;
  }

  .footer-logo-text {
    font-size: 24px;
  }

  .footer-description {
    font-size: 14px;
  }

  .footer-title {
    font-size: 16px;
  }

  .footer-menu a {
    font-size: 14px;
  }

  .footer-copyright p,
  .footer-credits p {
    font-size: 13px;
  }
}

/* ==========================================================================
   MOBILE MENU - WORKING HAMBURGER ANIMATION
   ========================================================================== */

.mobile-menu-toggle .bar {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: block;
  transform-origin: center;
}

/* Hamburger to X Animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #00dc82;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 220, 130, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 220, 130, 0.6);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
  .site-logo-text {
    font-size: 20px;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* Active Filters Display */
.active-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 12px 16px;
  background: rgba(0, 220, 130, 0.1);
  border: 1px solid rgba(0, 220, 130, 0.3);
  border-radius: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(0, 220, 130, 0.2);
  border: 1px solid rgba(0, 220, 130, 0.4);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #00dc82;
}

/* Clear Filters Button */
.clear-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
  color: #ff3b30;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-filters-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: #ff3b30;
  transform: translateY(-2px);
}

.clear-filters-btn svg {
  stroke-width: 2.5;
}

/* Responsive */
@media (max-width: 768px) {
  .active-filters {
    padding: 10px 12px;
  }

  .filter-tag {
    font-size: 12px;
    padding: 5px 12px;
  }

  .clear-filters-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

/* Results Info */
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  background: rgba(0, 220, 130, 0.1);
  border: 1px solid rgba(0, 220, 130, 0.2);
  border-radius: 10px;
  flex-wrap: wrap;
}

.results-count,
.page-info {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.results-count strong,
.page-info strong {
  color: #00dc82;
  font-weight: 600;
}
/* No Results */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results svg {
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.no-results h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 15px 0;
}

.no-results p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 30px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.no-results .btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.no-results .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 220, 130, 0.4);
}
@media (max-width: 480px) {
  .results-count,
  .page-info {
    font-size: 14px;
  }
}

/* ==========================================================================
   MOVIE ERROR PAGE
   ========================================================================== */

.movie-error {
  text-align: center;
  padding: 80px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.movie-error svg {
  color: rgba(255, 59, 48, 0.6);
  margin-bottom: 30px;
  animation: pulse 2s ease-in-out infinite;
}

.movie-error h1 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
}

.movie-error p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px 0;
  max-width: 600px;
}

.error-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 220, 130, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  .movie-error h1 {
    font-size: 26px;
  }

  .movie-error p {
    font-size: 16px;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

/* ==========================================================================
   TV SHOWS SPECIFIC STYLES
   ========================================================================== */

/* TV Badge */
.tv-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* TV Grid */
.tv-grid .movie-card {
  position: relative;
}

/* TV Card Hover Effect */
.tv-card:hover .tv-badge {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

/* Page Title with Icon */
.page-title svg {
  stroke: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
  .tv-badge {
    font-size: 10px;
    padding: 3px 8px;
    top: 8px;
    left: 8px;
  }
}

/* ==========================================================================
   TV SHOW DETAIL PAGE
   ========================================================================== */

/* TV Badge on Hero */
.tv-badge-hero {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
  z-index: 3;
}

/* Status Badges */
.status-returning-series {
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-ended {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-canceled {
  background: rgba(255, 149, 0, 0.2);
  color: #ff9500;
  border: 1px solid rgba(255, 149, 0, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.content-rating {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Seasons Section */
.seasons-section {
  margin-bottom: 40px;
}

.seasons-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.season-card {
  display: flex;
  gap: 20px;
  background: var(--color-bg-card, rgba(255, 255, 255, 0.05));
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.season-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateX(5px);
}

.season-poster {
  flex-shrink: 0;
  width: 100px;
  border-radius: 8px;
  overflow: hidden;
}

.season-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.season-poster-placeholder {
  width: 100px;
  aspect-ratio: 2/3;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.season-info {
  flex: 1;
}

.season-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.season-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.meta-separator {
  opacity: 0.5;
}

.season-year {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.season-episodes {
  color: #667eea;
  font-weight: 600;
}

.season-overview {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive - Seasons */
@media (max-width: 768px) {
  .season-card {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .season-poster {
    width: 100%;
    max-width: 150px;
  }

  .season-poster-placeholder {
    width: 100%;
  }

  .season-name {
    font-size: 18px;
  }

  .tv-badge-hero {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .season-meta {
    flex-wrap: wrap;
  }

  .season-overview {
    -webkit-line-clamp: 3;
  }
}

/* ==========================================================================
   MODERN PAGINATION DESIGN
   ========================================================================== */

.pagination-wrapper {
  margin: 60px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pagination-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

/* Pagination Buttons (Prev/Next) */
.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 220, 130, 0.3);
}

.pagination-btn:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 6px 20px rgba(0, 220, 130, 0.5); */
  color: #ffffff;
}

.pagination-btn.disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-btn.disabled:hover {
  transform: none;
}

.pagination-btn svg {
  width: 18px;
  height: 18px;
}

/* Page Numbers Container */
.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Individual Page Numbers */
.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.pagination-number:hover {
  background: rgba(0, 220, 130, 0.15);
  border-color: rgba(0, 220, 130, 0.4);
  color: #00dc82;
  transform: translateY(-2px);
}

.pagination-number.active {
  background: linear-gradient(135deg, #00dc82 0%, #00b86b 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 220, 130, 0.4);
  cursor: default;
}

.pagination-number.active:hover {
  transform: none;
}

/* Dots */
.pagination-dots {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 600;
  padding: 0 8px;
  user-select: none;
}

/* Page Info Text */
.pagination-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.pagination-info strong {
  color: #00dc82;
  font-weight: 700;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .pagination-container {
    padding: 10px 16px;
    gap: 8px;
  }

  .pagination-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .pagination-btn span {
    display: none;
  }

  .pagination-btn svg {
    width: 20px;
    height: 20px;
  }

  .pagination-number {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .pagination-wrapper {
    margin: 40px 0 30px;
  }

  .pagination-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 12px;
  }

  .pagination-numbers {
    gap: 4px;
  }

  .pagination-number {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .pagination-btn {
    padding: 8px 12px;
  }

  /* Hide some page numbers on mobile */
  .pagination-number:nth-child(n + 6):not(.active) {
    display: none;
  }
}

/* ==========================================================================
   SEARCH PAGE TABS
   ========================================================================== */

.search-header {
  margin-bottom: 40px;
}

.search-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 30px 0;
  display: flex;
  align-items: center;
}

.search-term {
  color: #00dc82;
  font-style: italic;
}

/* Search Tabs */
.search-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.search-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.search-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.search-tab.active {
  color: #00dc82;
  border-bottom-color: #00dc82;
  background: rgba(0, 220, 130, 0.1);
}

.search-tab svg {
  flex-shrink: 0;
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
}

.search-tab.active .tab-count {
  background: rgba(0, 220, 130, 0.3);
  color: #00dc82;
}

/* Search Results Info */
.search-results-info {
  margin-bottom: 30px;
  padding: 20px 24px;
  background: rgba(0, 220, 130, 0.1);
  border-left: 4px solid #00dc82;
  border-radius: 8px;
}

.search-results-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

/* Empty Search State */
.search-empty-state {
  text-align: center;
  padding: 80px 20px;
}

.search-empty-state svg {
  opacity: 0.3;
  margin-bottom: 30px;
}

.search-empty-state h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.search-empty-state p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .search-title {
    font-size: 24px;
  }

  .search-tabs {
    gap: 8px;
  }

  .search-tab {
    padding: 12px 16px;
    font-size: 14px;
  }

  .search-tab span {
    display: none;
  }

  .search-tab svg {
    margin: 0;
  }

  .tab-count {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .search-tab {
    position: relative;
    justify-content: center;
    flex: 1;
  }
}

/* ==========================================================================
   GENRE ARCHIVE PAGE
   ========================================================================== */

.genre-archive-page .page-header {
  margin-bottom: 50px;
}

.page-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 16px 0 30px 0;
}

/* Genre Tabs */
.genre-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}

.genre-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
}

.genre-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.genre-tab.active {
  color: #00dc82;
  border-bottom-color: #00dc82;
  background: rgba(0, 220, 130, 0.1);
}

/* Genre Grid */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.genre-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.genre-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 220, 130, 0.3);
}

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

.genre-card-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.genre-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 220, 130, 0.8) 0%,
    rgba(0, 184, 107, 0.9) 100%
  );
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.genre-card:hover .genre-overlay {
  opacity: 0.95;
}

.genre-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.genre-card:hover .genre-icon {
  transform: scale(1.1) rotate(5deg);
}

.genre-icon svg {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.tv-badge-genre {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.genre-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
}

.genre-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  transition: color 0.3s ease;
}

.genre-card:hover .genre-name {
  color: #00dc82;
}

.genre-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.genre-card:hover .genre-arrow {
  color: #00dc82;
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
  .genre-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .genre-card-image {
    height: 160px;
  }

  .genre-tab span:first-of-type {
    display: none;
  }

  .genre-tabs {
    gap: 8px;
  }

  .genre-tab {
    padding: 12px 16px;
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .genre-grid {
    grid-template-columns: 1fr;
  }
}
.footer-content a {
  color: #00dc82;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(20, 20, 30, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 16px 0;
}

/* ==========================================================================
   LOGO / BRANDING
   ========================================================================== */

.site-branding {
  flex-shrink: 0;
}

.site-logo-text {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-logo-text:hover {
  color: #00dc82;
}

.custom-logo-link img {
  max-height: 40px;
  width: auto;
}

/* ==========================================================================
   DESKTOP NAVIGATION WITH DROPDOWNS
   ========================================================================== */

.main-navigation {
  flex: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
  color: #00dc82;
  background: rgba(0, 220, 130, 0.1);
}

/* Dropdown Indicator */
.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

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

/* Sub-menu / Dropdown */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(20, 20, 30, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  margin-top: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  margin: 0;
}

.sub-menu a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sub-menu a:hover {
  color: #ffffff;
  background: rgba(0, 220, 130, 0.15);
  padding-left: 20px;
}

.sub-menu li.current-menu-item > a,
.sub-menu li.current_page_item > a {
  color: #00dc82;
  background: rgba(0, 220, 130, 0.1);
}

/* Multi-level Dropdowns */
.sub-menu .menu-item-has-children {
  position: relative;
}

.sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 8px;
}

.sub-menu .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
  margin-left: 0;
  border-left: 0;
  border-bottom: 0;
}

/* ==========================================================================
   SEARCH
   ========================================================================== */

.header-search {
  position: relative;
  flex-shrink: 0;
}

.search-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #00dc82;
}

.search-form-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 0 12px;
  transition: all 0.3s ease;
}

.search-form-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 220, 130, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 220, 130, 0.1);
}

.search-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
}

.search-field {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.search-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-submit {
  display: none;
}

.search-close {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* ==========================================================================
   MOBILE MENU TOGGLE
   ========================================================================== */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */

.mobile-navigation {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85%;
  height: 100vh;
  background: rgba(20, 20, 30, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 99999;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-navigation.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: rgba(20, 20, 30, 0.98);
  backdrop-filter: blur(20px);
  z-index: 10;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.mobile-menu-content {
  padding: 16px;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu > li {
  margin-bottom: 8px;
}

.mobile-nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu li.current-menu-item > a,
.mobile-nav-menu li.current_page_item > a {
  color: #00dc82;
  background: rgba(0, 220, 130, 0.15);
}

/* Mobile Sub-menu */
.mobile-nav-menu .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    margin 0.3s ease;
}
.mobile-nav-menu .sub-menu li {
  margin: 0;
  padding: 0;
}
.mobile-nav-menu .menu-item-has-children.active > .sub-menu {
  max-height: 1000px;
  padding: 8px 0 8px 20px;
  margin: 8px 0 0 0;
  border-left: 2px solid rgba(0, 220, 130, 0.3);
  position: unset;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-menu .sub-menu a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  background: transparent;
  margin: 4px 0;
}

.mobile-nav-menu .sub-menu a:hover {
  background: rgba(0, 220, 130, 0.1);
}
.mobile-nav-menu .menu-item-has-children > a {
  position: relative;
}
/* Mobile Dropdown Toggle Icon */
.mobile-nav-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.3s ease;
}

.mobile-nav-menu .menu-item-has-children.active > a::after {
  transform: rotate(180deg);
}
.mobile-nav-menu .menu-item-has-children.active > a {
  color: #00dc82;
}
/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 99998;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
.sub-menu {
  column-count: 4;
  gap: 0;
}
/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

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

  .mobile-menu-toggle {
    display: flex;
  }

  .search-toggle {
    display: flex;
  }

  .search-form {
    position: absolute;
    top: calc(100% + 25px);
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .search-form-wrapper {
    width: 280px;
  }

  .search-close {
    display: flex;
  }
  .sub-menu {
    column-count: 2;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 15px;
  }

  .site-logo-text {
    font-size: 20px;
  }

  .site-logo-text svg {
    width: 24px;
    height: 24px;
  }

  .search-form-wrapper {
    width: 240px;
  }
}

@media (min-width: 1025px) {
  .mobile-navigation,
  .mobile-menu-overlay {
    display: none !important;
  }
}
.footer-content-wrapper{
  padding-top: 30px;
}