/*
Theme Name: Movie4Arabs Cinema V4
Theme URI: https://movie4arabs.com
Author: Antigravity IDE
Description: High-converting, state-of-the-art cinematic streaming platform theme inspired by Netflix, EgyBest, and QFilm.
Version: 2.0.0
Text Domain: movie4arabs
*/

:root {
  --bg-main: #0a0b0e;
  --bg-card: #14161f;
  --bg-card-hover: #1c1f2c;
  --bg-glass: rgba(16, 18, 26, 0.88);
  --primary: #ff6600;
  --primary-hover: #ff7f24;
  --primary-glow: rgba(255, 102, 0, 0.4);
  --accent: #e50914;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 102, 0, 0.6);
  --font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 14px 36px rgba(255, 102, 0, 0.3);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.site-logo span {
  color: var(--primary);
  text-shadow: 0 0 16px var(--primary-glow);
}

.site-logo .icon-reel {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-search {
  flex: 0 1 360px;
}

.search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 6px 16px;
}

.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 14px var(--primary-glow);
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  padding: 4px 8px;
}

.search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Hero Spotlight */
.hero-spotlight {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 30px 0;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-main);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.3) 0%, rgba(10, 11, 14, 0.96) 100%),
              linear-gradient(90deg, rgba(10, 11, 14, 0.95) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 680px;
}

.hero-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.badge {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.3px;
}

.badge-primary { background: var(--primary); color: #fff; }
.badge-dark { background: rgba(0, 0, 0, 0.7); color: #f0f2f5; border: 1px solid var(--border-light); }
.badge-star { background: #f59e0b; color: #000; font-weight: 900; }
.badge-sub { background: #2563eb; color: #fff; }

.hero-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-desc {
  font-size: 15px;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 22px;
}

.btn-watch {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 12px 30px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-watch:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--primary-glow);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 20px;
  border-right: 4px solid var(--primary);
  padding-right: 14px;
}

.section-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.section-tabs {
  display: flex;
  gap: 8px;
}

.sec-tab {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.sec-tab:hover, .sec-tab.active {
  background: var(--primary);
  color: #fff;
}

/* Movie Grid & Cards */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 22px;
}

@media (max-width: 768px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.movie-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-hover);
}

.card-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f1015;
  display: block;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .card-poster {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px var(--primary-glow);
  transform: scale(0.8);
  transition: var(--transition);
}

.movie-card:hover .play-circle {
  transform: scale(1);
}

.card-badges-top {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.card-badges-bottom {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
}

.card-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-cat {
  color: var(--primary);
  font-weight: 700;
}

/* Single Movie Page & Theater Player */
.single-movie-container {
  margin: 30px 0 60px;
}

.movie-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.movie-breadcrumb a:hover {
  color: var(--primary);
}

.movie-breadcrumb .active {
  color: #fff;
  font-weight: 700;
}

.cinema-player-box {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 102, 0, 0.15);
  border: 1px solid var(--border-light);
  margin: 25px 0 35px;
}

.player-screen {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}

.player-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.server-selector-bar {
  background: #14161f;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.server-label {
  font-weight: 900;
  font-size: 15px;
  color: var(--primary);
}

.server-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-details-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 35px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-light);
}

@media (max-width: 860px) {
  .movie-details-layout {
    grid-template-columns: 1fr;
  }
}

.details-poster img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  width: 100%;
}

.details-content h1 {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.details-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  font-size: 14px;
}

.meta-item {
  color: var(--text-muted);
}

.meta-item strong {
  color: #fff;
}

.details-story {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 15px;
}

/* Download Box */
.download-box {
  margin: 30px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.download-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.download-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-sm);
}

.download-btn:hover {
  background: var(--primary-hover);
}

/* Footer */
.site-footer {
  background: #07080a;
  border-top: 1px solid var(--border-light);
  padding: 45px 0 25px;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 13px;
  color: #555;
}
