:root {
  --color-primary: #FF1168;
  --color-primary-hover: #ff2d7a;
  --color-dark: #1A1C1E;
  --color-dark-light: #2A2C2E;
  --color-white: #ffffff;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-yellow-400: #facc15;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-dark);
  color: var(--color-white);
  font-family: 'Noto Sans Arabic', sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2%;
}

/* Header Styles */
.header {
  background-color: var(--color-dark-light);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--spacing-md) 0;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: bold;
}

.logo-dot {
  color: var(--color-primary);
}

.desktop-nav {
  display: block;
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-gray-300);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-white);
}

.search-container {
  position: relative;
  display: block;
}

.search-input {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-lg);
  padding-left: 2.5rem;
  border-radius: var(--border-radius-lg);
  border: none;
  width: 300px;
  font-size: 0.875rem;
}

.search-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  pointer-events: none;
}

.mobile-nav {
  display: none;
  background-color: var(--color-dark-light);
  border-top: 1px solid var(--color-gray-700);
}

.mobile-nav.show {
  display: block;
}

.mobile-nav-list {
  padding: var(--spacing-md) 0;
  list-style: none;
}

.mobile-nav-item {
  padding: var(--spacing-sm) 0;
}

.mobile-search {
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-top: 1px solid var(--color-gray-700);
}

/* Shows Grid */
.shows-section {
  padding: var(--spacing-xl) 0;
}

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

.shows-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
}

.show-link {
  text-decoration: none;
  color: inherit;
}

.load-more {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* Featured Section */
.featured-section {
  position: relative;
  height: 350px;
  margin-bottom: var(--spacing-xl);
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, transparent, rgba(0,0,0,0.8));
  display: flex;
  align-items: center;
}

.featured-info {
  max-width: 600px;
}

.featured-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.featured-description {
  color: var(--color-gray-200);
  margin-bottom: var(--spacing-lg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .shows-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .shows-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-button {
    display: block;
  }

  .desktop-nav {
    display: none;
  }

  .search-container {
    display: none;
  }

  .shows-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
  }

  .featured-section {
    height: 250px;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .featured-description {
    display: none;
  }
}

@media (max-width: 480px) {
  .shows-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-nav .search-input {
    width: 100%;
  }
}

/* Movie Card Styles */
.movie-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.movie-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.movie-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.movie-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3), transparent);
  /* Changed from opacity: 0 to opacity: 1 to always show content */
  opacity: 1;
}

.movie-card-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: var(--spacing-md);
  /* Removed transform to always show content */
  transform: translateY(0);
}

.movie-card-title {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-category {
  color: var(--color-gray-300);
  font-size: 0.75rem;
  margin-bottom: var(--spacing-xs);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating {
  display: flex;
  gap: var(--spacing-xs);
}

.star {
  font-size: 0.875rem;
} .star-filled {
  color: var(--color-yellow-400);
}

.star-empty {
  color: var(--color-gray-400);
}

/* Watch Page Styles */
.watch-container {
  display: grid;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
}

@media (min-width: 1024px) {
  .watch-container {
    grid-template-columns: 1fr 30%;
  }
}

.main-content {
  min-width: 0;
}

.video-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto var(--spacing-lg);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sidebar {
  width: 100%;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.episode-button {
  background-color: var(--color-dark);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.2s ease;
}

.episode-button:hover {
  background-color: var(--color-primary);
  transform: translateY(-1px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.box {
  background-color: var(--color-dark-light);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--color-white);
}

.button {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.button:hover {
  background-color: var(--color-primary-hover);
}

/* Plyr Custom Styles */
.plyr {
  --plyr-color-main: var(--color-primary);
  height: 100%;
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}
/* Custom Styles */
.rating-title {
    font-size: 1.5rem; /* Adjust the size as needed */
    font-weight: bold; /* Make the title bold */
    text-align: center; /* Center-align the title */
    margin-top: 2rem; /* Top margin for spacing */
    margin-bottom: 1.5rem; /* Bottom margin for spacing */
    text-transform: uppercase; /* Optional: Makes the text uppercase */
    letter-spacing: 1px; /* Adds spacing between letters for a polished look */
}
.refresh-container {
    display: flex; /* Enables flexible layout */
    flex-direction: column; /* Stacks child elements vertically */
    align-items: center; /* Centers child elements horizontally */
    justify-content: center; /* Centers child elements vertically */
    margin-top: 2rem; /* Adds space above the container */
    margin-bottom: 2rem; /* Adds space below the container */
    text-align: center; /* Ensures text inside the container is centered */
}
/* custom styles */
ul.servers-tabs {
    clear: both;
    padding: 0px 16px 16px;
}	
ul.servers-tabs > a {
    display: inline-block;
    vertical-align: middle;
    padding: 10px 25px 12px;
    background: #2a2a2a14;
    font-size: 15px;
	font-weight: bold;
	text-align: center;
    border-radius: 8px;
    margin: 4px;
    flex: 1;
}
ul.servers-tabs > a:first-child {
    background: #42414d !important;
    color: white;
}
ul.download-servers {
    text-align: center;
    padding: 5px 25px 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
ul.download-servers > a {
    display: inline-block;
    vertical-align: middle;
    background: #55b755;
    color: #fff !important;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    margin: 4px;
    flex: 1;
}
.download-servers-title {
    text-align: center;
    font-size: 24px;
    padding: 20px;
}
.adblock-message {
    display: block;
    text-align: center;
    padding: 19px 19px;
    clear: both;
}	