/* ✅ قاعدة التصميم العام */
body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #0f0f0f;
  color: #fff;
}
.video-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

iframe {
  width: 640px;
  height: 400px;
}

.episode-list {
  flex-direction: column;
  max-height: 400px;
  overflow-y: auto;
  align-items: flex-start;
}

/* ✅ رأس الصفحة */
.header-container {
  background-color: #141414;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 5px rgba(229, 9, 20, 0.6);
  }
  50% {
    transform: scale(1.05);
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.9);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 5px rgba(229, 9, 20, 0.6);
  }
}

.logo {
  font-size: 32px;
  font-weight: 800;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: #e50914;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(90deg, #e50914, #ff4e50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 5px rgba(229, 9, 20, 0.7);
  cursor: pointer;
  animation: 
    fadeInSlide 0.8s ease-in-out both,
    pulse 4s ease-in-out infinite 2s;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.08);
  text-shadow: 0 0 15px rgba(255, 0, 0, 1);
}



.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar .nav-links li {
  position: relative;
}

.navbar .nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  transition: background 0.3s;
}

.navbar .nav-links a:hover {
  background-color: #e50914;
  border-radius: 6px;
}

/* ✅ القائمة المنسدلة السينمائية */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(to bottom, #1e1e1e, #111);
  display: none;
  flex-direction: column;
  min-width: 170px;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 99;
  padding: 8px 0;
  animation: fadeInMenu 0.3s ease forwards;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

/* ✅ العناصر داخل القائمة */
.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, padding-right 0.2s;
}

.dropdown-menu a:hover {
  background-color: #e50914;
  color: white;
  padding-right: 26px;
}

/* ✅ حركة دخول ناعمة */
@keyframes fadeInMenu {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ شريط البحث السينمائي */
.search-bar {
  background: linear-gradient(to right, #1a1a1a, #111);
  padding: 14px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #333;
  border-bottom: 1px solid #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ✅ مدخل البحث العصري */
#searchInput {
  width: 100%;
  max-width: 450px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #444;
  background-color: #0d0d0d;
  color: #fff;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

#searchInput::placeholder {
  color: #999;
}

#searchInput:focus {
  border-color: #e50914;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
  background-color: #111;
}

/* ✅البوسترات*/

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1200px;
  margin: auto;
}

.movie-card {
  background: #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.movie-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(255,0,0,0.3);
}

.movie-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #333;
  transition: 0.3s;
}

.movie-card h3 {
  margin: 12px;
  font-size: 16px;
  color: #fff;
}

.watch-btn {
  display: block;
  margin: 10px auto 15px;
  background-color: #e50914;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.3s;
}
.watch-btn:hover {
  background-color: #b2070f;
}

/* ✅ التذييل السينمائي */
footer {
  text-align: center;
  background: linear-gradient(to right, #111, #1a1a1a, #111);
  color: #aaa;
  padding: 25px 15px;
  font-size: 15px;
  border-top: 1px solid #333;
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
  position: relative;
  z-index: 10;
}

/* ✅ أزرار التصنيفات العصرية */
.category-buttons {
  text-align: center;
  margin: 40px 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-buttons button {
  background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
  color: #fff;
  border: 1px solid #444;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.category-buttons button:hover {
  background: #e50914;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
}



/* ✅ صفحة التفاصيل */
.details-wrapper {
  padding: 40px 20px;
  background-color: #111;
  min-height: 100vh;
}

.details-card {
  max-width: 1000px;
  margin: auto;
  background: linear-gradient(to bottom right, #1a1a1a, #111);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.6s ease forwards;
}

.details-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-poster {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  margin: auto;
}

.details-info {
  text-align: center;
}

.details-title {
  font-size: 28px;
  font-weight: 800;
  color: #e50914;
  margin-top: 20px;
}

.details-description {
  font-size: 16px;
  line-height: 1.8;
  color: #ccc;
  margin: 20px 0;
}

.watch-btn {
  display: inline-block;
  background-color: #e50914;
  color: white;
  font-size: 17px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

.watch-btn:hover {
  background-color: #ff1f3d;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.8);
  transform: scale(1.05);
}

.error-msg {
  text-align: center;
  font-size: 18px;
  color: #f55;
  padding: 40px;
}

/* ✅ تأثير دخول ناعم */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

button, .control-btn, .episode-btn {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.category-buttons .dropdown {
  position: relative;
  display: inline-block;
}

.category-buttons .dropdown button {
  background-color: #444;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  margin: 5px;
  cursor: pointer;
  font-size: 14px;
}

.category-buttons .dropdown-menu {
  display: none;
  position: absolute;
  background-color: #222;
  border-radius: 10px;
  box-shadow: 0 2px 5px #000;
  min-width: 160px;
  z-index: 1;
  right: 0;
  text-align: right;
}

.category-buttons .dropdown:hover .dropdown-menu {
  display: block;
}

.category-buttons .dropdown-menu button {
  background: none;
  border: none;
  color: #fff;
  padding: 10px;
  width: 100%;
  text-align: right;
  cursor: pointer;
}

.category-buttons .dropdown-menu button:hover {
  background-color: #ff3c00;
}
.rating-stars {
  margin: 6px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.rating-stars img.star {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.rating-number {
  font-size: 13px;
  margin-left: 5px;
  color: #f0c040;
  font-weight: bold;
}
