/*
Theme Name: CinemaStar
Theme URI: https://blog.chafiktech.com
Author: Chafiktech
Author URI: https://blog.chafiktech.com
Description: Professional Arabic Movie Catalog Theme - Netflix Dark Premium Style
Version: 1.0.0
Text Domain: cinemastar
Tags: rtl, dark, movies, catalog, arabic
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==============================
   CSS VARIABLES
============================== */
:root {
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #111118;
  --bg-card:       #16161f;
  --bg-hover:      #1e1e2a;
  --accent-red:    #e50914;
  --accent-red2:   #b20710;
  --accent-gold:   #f5c518;
  --accent-blue:   #4fc3f7;
  --text-primary:  #ffffff;
  --text-secondary:#b3b3b3;
  --text-muted:    #666680;
  --border-color:  #2a2a3a;
  --glass-bg:      rgba(255,255,255,0.05);
  --glass-border:  rgba(255,255,255,0.08);
  --shadow-red:    0 0 30px rgba(229,9,20,0.3);
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --transition:    all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

/* ==============================
   SCROLLBAR
============================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red2); }

/* ==============================
   CONTAINER
============================== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==============================
   HEADER / NAVBAR
============================== */
#site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition);
  background: linear-gradient(180deg, rgba(10,10,15,0.98) 0%, rgba(10,10,15,0.0) 100%);
  padding: 0;
}

#site-header.scrolled {
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  box-shadow: var(--shadow-red);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-red);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
  background: var(--glass-bg);
}

/* Search Bar */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 6px 16px;
  gap: 8px;
  transition: var(--transition);
  min-width: 200px;
}

.nav-search:focus-within {
  border-color: var(--accent-red);
  background: rgba(229,9,20,0.05);
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  width: 100%;
  direction: rtl;
}

.nav-search input::placeholder { color: var(--text-muted); }

.nav-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 15px;
  padding: 0;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav-search button:hover { color: var(--accent-red); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 22px;
  padding: 5px;
}

/* ==============================
   HERO SECTION
============================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,15,0.95) 30%,
    rgba(10,10,15,0.5) 60%,
    rgba(10,10,15,0.1) 100%
  ),
  linear-gradient(
    to top,
    rgba(10,10,15,1) 0%,
    rgba(10,10,15,0.3) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
  max-width: 550px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-red);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 16px;
}

.hero-year, .hero-duration, .hero-quality {
  color: var(--text-secondary);
  font-size: 14px;
}

.hero-quality {
  background: var(--accent-blue);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-red);
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  transition: var(--transition);
  box-shadow: var(--shadow-red);
  border: none;
  cursor: pointer;
}

.btn-watch:hover {
  background: var(--accent-red2);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(229,9,20,0.5);
  color: #fff;
}

.btn-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
}

.btn-info:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

/* ==============================
   SECTIONS
============================== */
.section {
  padding: 50px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 26px;
  background: var(--accent-red);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-link {
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.section-link:hover {
  color: var(--text-primary);
  gap: 8px;
}

/* ==============================
   MOVIE GRID
============================== */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.movies-grid.large {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ==============================
   MOVIE CARD
============================== */
.movie-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  group: true;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(229,9,20,0.15);
  z-index: 10;
}

.movie-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,15,0.95) 0%,
    rgba(10,10,15,0.3) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.play-btn {
  width: 56px;
  height: 56px;
  background: rgba(229,9,20,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  transform: scale(0.7);
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(229,9,20,0.5);
}

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

.movie-quality-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.movie-rating-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.8);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.movie-info {
  padding: 10px 10px 12px;
}

.movie-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.movie-meta-small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.movie-meta-small .dot {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==============================
   HORIZONTAL SCROLL (Carousel)
============================== */
.movies-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.movies-carousel::-webkit-scrollbar { display: none; }

.movies-carousel .movie-card {
  flex: 0 0 170px;
  scroll-snap-align: start;
}

/* ==============================
   CATEGORIES BAR
============================== */
.categories-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(229,9,20,0.3);
  transform: translateY(-2px);
}

.cat-btn .cat-icon { font-size: 16px; }

/* ==============================
   TOP 10 SECTION
============================== */
.top10-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.top10-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: var(--transition);
  cursor: pointer;
}

.top10-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent-red);
  transform: translateX(-4px);
}

.top10-number {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--border-color);
  line-height: 1;
  min-width: 45px;
  text-align: center;
  -webkit-text-stroke: 2px var(--border-color);
  transition: var(--transition);
}

.top10-item:hover .top10-number {
  -webkit-text-stroke-color: var(--accent-red);
  color: transparent;
}

.top10-poster {
  width: 60px;
  height: 85px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.top10-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top10-details { flex: 1; min-width: 0; }

.top10-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top10-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

/* ==============================
   SINGLE MOVIE PAGE
============================== */
.movie-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.movie-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(3px) brightness(0.4);
  transform: scale(1.1);
}

.movie-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 50px;
  width: 100%;
}

.movie-detail-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

.movie-detail-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  position: sticky;
  top: 90px;
}

.movie-detail-poster img {
  width: 100%;
  display: block;
}

.movie-detail-info { flex: 1; }

.movie-detail-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
}

.movie-detail-title-en {
  font-size: 16px;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 16px;
}

.movie-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.meta-badge.rating { color: var(--accent-gold); border-color: var(--accent-gold); }
.meta-badge.quality { color: var(--accent-blue); border-color: var(--accent-blue); }

.movie-detail-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  font-size: 15px;
}

/* THE BIG WATCH BUTTON */
.watch-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent-red), #ff4444);
  color: #fff;
  padding: 18px 45px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  transition: var(--transition);
  box-shadow: 0 8px 40px rgba(229,9,20,0.5);
  margin-bottom: 30px;
  border: none;
  cursor: pointer;
}

.watch-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 60px rgba(229,9,20,0.7);
  color: #fff;
  background: linear-gradient(135deg, #ff1a1a, #e50914);
}

.watch-now-btn .play-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Movie Info Table */
.movie-info-table {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.movie-info-row {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.movie-info-row:last-child { border-bottom: none; }

.movie-info-label {
  width: 130px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.movie-info-value {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-tag {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--accent-red);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.genre-tag:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

/* ==============================
   STATIC PAGES (About, Privacy, etc.)
============================== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 120px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-hero h1 span { color: var(--accent-red); }

.page-hero p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.page-content {
  max-width: 850px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-content h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--accent-red);
  border-radius: 2px;
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 15px;
}

.page-content ul {
  list-style: none;
  margin-bottom: 16px;
}

.page-content ul li {
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
}

.page-content ul li::before {
  content: '◆';
  color: var(--accent-red);
  font-size: 8px;
  margin-top: 6px;
  flex-shrink: 0;
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin-top: 30px;
}

.contact-box h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 16px;
  transition: var(--transition);
}

.contact-email:hover {
  background: var(--accent-red2);
  transform: translateY(-2px);
  color: #fff;
}

/* ==============================
   FOOTER
============================== */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 0;
  margin-top: 60px;
}

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

.footer-brand .logo-text { font-size: 20px; margin-bottom: 12px; display: block; }

.footer-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent-red);
  padding-right: 5px;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 12px;
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--accent-red); }

/* Disclaimer bar */
.disclaimer-bar {
  background: rgba(229,9,20,0.08);
  border: 1px solid rgba(229,9,20,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 30px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================
   SEARCH RESULTS
============================== */
.search-page-header {
  padding: 120px 0 40px;
  border-bottom: 1px solid var(--border-color);
}

.search-query {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.search-query span { color: var(--accent-red); }

.search-count { color: var(--text-muted); font-size: 14px; }

/* ==============================
   404 PAGE
============================== */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.page-404 .error-code {
  font-family: 'Outfit', sans-serif;
  font-size: 120px;
  font-weight: 900;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 0 60px rgba(229,9,20,0.4);
}

/* ==============================
   ARCHIVE PAGE
============================== */
.archive-header {
  padding: 110px 0 40px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.archive-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}

.archive-title span { color: var(--accent-red); }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.filter-select:focus { border-color: var(--accent-red); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 20px 0;
}

.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.page-num:hover,
.page-num.current {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

/* ==============================
   LOADING SKELETON
============================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .movie-detail-layout { grid-template-columns: 200px 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-search { display: none; }
  .nav-menu.open { display: flex; flex-direction: column; position: fixed; top: 70px; right: 0; left: 0; background: var(--bg-secondary); padding: 20px; gap: 8px; border-bottom: 1px solid var(--border-color); }
  .menu-toggle { display: flex; }
  .hero-content { max-width: 100%; padding: 100px 0 50px; }
  .hero-title { font-size: 1.8rem; }
  .movie-detail-layout { grid-template-columns: 1fr; }
  .movie-detail-poster { position: static; max-width: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .movies-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .top10-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .movies-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons { flex-direction: column; }
  .btn-watch, .btn-info { justify-content: center; }
}

/* ==============================
   ANIMATIONS
============================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.3s; }
