a {
  text-decoration: none !important;
  color: inherit !important;
}
body {

background-color: #000000;
background-image: url("crissxcross.png");
/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
 
  color: var(--text-color);
  overflow-x: hidden;
}


/* Header Styles */
.upmovi-header {
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.top-bar {
  background-color: var(--dark-secondary);
  padding: 0.8rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 45, 117, 0.3);
}
.footer-bar {
background: rgba(255,255,255,0.05);
 
  padding: 0.8rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 45, 117, 0.3);
}
.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.03);
}

.navbar-brand img {
  height: 38px;
  transition: transform 0.3s ease;
}

.nav-item {
  margin: 0 0.8rem;
  position: relative;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 0 !important;
  color: var(--text-color) !important;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--pink-primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.dropdown-menu {
  background-color: var(--dark-secondary);
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  margin-top: 0.8rem;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.7rem 1.5rem;
   color: #fff!important;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(255, 45, 117, 0.1);
  color: #fff!important;
}

.btn {
  border-radius: 6px;
  padding: 8px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-pink {
  background-color: var(--pink-primary);
  color: white !important;
  transition: all 0.3s ease;
}

.btn-pink:hover {
  background-color: var(--pink-secondary);
  box-shadow: 0 5px 15px rgba(255, 45, 117, 0.4);
}

.btn-transparent {
  background-color: transparent;
  color: var(--text-color) !important;
  transition: all 0.3s ease;
}

.btn-transparent:hover {
  color: var(--pink-primary) !important;
  background-color: rgba(255, 255, 255, 0.05);
}

.cart-badge {
  background-color: var(--pink-primary) !important;
  color: white !important;
  font-weight: bold;
}

#languageToggle {
  background-color: transparent;
  color: var(--pink-primary);
  transition: all 0.3s ease;
}

#languageToggle:hover {
  background-color: rgba(255, 45, 117, 0.1);
}

#searchModal .modal-content {
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(15px);
  border: none;
}

#searchModal .form-control {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 45, 117, 0.5);
  color: white;
  font-size: 1.8rem;
  padding: 1.5rem 0;
  border-radius: 0;
  text-align: center;
  font-weight: 300;
}

#searchModal .form-control:focus {
  box-shadow: none;
  border-color: var(--pink-primary);
}

#searchModal .form-control::placeholder {
  color: rgba(255, 45, 117, 0.7);
  font-weight: 300;
}

.navbar-toggler {
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 992px) {
  .navbar-collapse {
    background-color: var(--dark-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.5rem 1rem !important;
  }
  
  .dropdown-menu {
    margin-left: 1.5rem;
    box-shadow: none;
  }
}

/* Main Layout */
.main-wrapper {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* Sidebar */
.sidebar {
  width: 280px;
  padding: 0px;
  position: sticky;
  top: 56px;
  height: auto;
  display: none;
}

@media (min-width: 992px) {
  .sidebar {
    display: block;
  }
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-pink), var(--bs-light-pink));
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

.modal-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background-color: var(--bs-darker);
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-sidebar.show {
  transform: translateX(0);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-sidebar-content {
  height: 100%;
  overflow-y: auto;
  padding: 1rem;
}

/* Content Area */
.content {
  flex: 1;
  padding: 0.5rem;
}

/* Movie Cards */
.movie-card {
  background-color: var(--bs-card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  
  position: relative;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.card-img-top {
   background-size: cover;
  background-position: center;
  position: relative;
}

.card-img-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.5rem;
}

.movie-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  line-height: 1.3;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.0rem;
}

.movie-rating {
  position: absolute;
  top: 10px;
  left: 10px;

  padding: 0.1rem 0.1rem;
  border-radius: 4px;
  color: var(--bs-gold);
  font-weight: 10;
}

.movie-year {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.3);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: white;
  font-size: 0.8rem;
}

/* Filters */
.filter-toggle-btn {
  background: linear-gradient(135deg, var(--bs-pink), var(--bs-light-pink));
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.filter-section {
  background-color: var(--bs-card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.filter-header {
  background: linear-gradient(135deg, var(--bs-pink), var(--bs-light-pink));
  color: white;
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-body {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.apply-filter-btn {
  background: linear-gradient(135deg, var(--bs-pink), var(--bs-light-pink));
  border: none;
}

.clear-filter-btn {
  background: transparent;
  border: 1px solid var(--bs-pink);
  color: var(--bs-pink);
}

/* Accordion */
.accordion {
  --bs-accordion-bg: rgba(0,0,0,0.8);
  --bs-accordion-border-color: rgba(255,255,255,0);
  --bs-accordion-btn-color: white;
  --bs-accordion-btn-bg: var(--bs-pink);
  --bs-accordion-active-color: white;
  --bs-accordion-active-bg: var(--bs-light-pink);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 0;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background-color 0.2s;
}

.filter-item:hover {
  background-color: rgba(255,255,255,0.05);
}

.filter-item a {
  color: white!important;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
}

.filter-count {
  background-color: #000;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color:#ed9e12;
}

/* Pagination */
.custom-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.custom-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding:10px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--bs-card-bg);
  color: var(--bs-white);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--bs-pink);
  font-weight: 500;
}

.custom-pagination .page-link:hover:not(.disabled) {
  background-color: var(--bs-pink);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(233, 30, 99, 0.3);
}

.custom-pagination .page-link.active {
  background-color: var(--bs-pink);
  color: white;
  font-weight: bold;
  border-color: var(--bs-pink);
  box-shadow: 0 4px 8px rgba(233, 30, 99, 0.3);
}

.custom-pagination .page-link.disabled {
  opacity: 0.5;
  pointer-events: none;
  border-color: var(--bs-secondary);
  background-color: transparent;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  background: linear-gradient(135deg, var(--bs-pink), var(--bs-light-pink));
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

/* Responsive Grid */
@media (min-width: 992px) {
  .movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 991px) {
  .movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--bs-pink), var(--bs-light-pink));
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.search-header {
  background: linear-gradient(135deg, var(--darker-bg) 0%, #0f3460 100%);
  padding: 3rem 2rem;
  border-radius: 15px;
  margin-bottom: 3rem;
  border: 1px solid rgba(233, 69, 132, 0.2);
}

.search-form .form-control {
  height: 50px;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: none;
}

.search-form .form-control::placeholder {
  color: var(--text-muted);
}

.search-form .btn {
  height: 50px;
  font-size: 1.1rem;
  background-color: var(--pink-accent);
  border: none;
  transition: all 0.3s ease;
}

.search-form .btn:hover {
  background-color: var(--light-pink);
}

/* کارت بازیگر */
.actor-card {
  background: var(--darker-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  height: 100%;
  border: 0px solid rgba(233, 69, 132, 0.1);
  position: relative;
}

.actor-card:hover {
  transform: translateY(-10px);
  
  border-color: rgba(233, 69, 132, 0.3);
}

.actor-image-wrapper {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
}

.actor-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.actor-card:hover .actor-image {
  transform: scale(1.05);
}

.actor-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(22, 33, 62, 0.9) 0%, transparent 100%);
}

.movie-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--pink-accent);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}

.actor-info {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, var(--pink-accent) 0%, transparent 100%);
}

.actor-name {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

 
/* واکنش‌گرایی */
@media (max-width: 768px) {
  .search-header {
    padding: 2rem 1rem;
    text-align: center;
  }
  
  .search-form .form-control,
  .search-form .btn {
    height: 45px;
  }
}

.no-results {
  color: var(--text-light);
}

.empty-state img {
  filter: grayscale(80%) brightness(0.8);
}

/* هدر پروفایل */
.profile-header {
    position: relative;
    margin-bottom: 80px;
}

.profile-banner {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.profile-content {
    display: flex;
    align-items: flex-end;
    position: relative;
    margin-top: -100px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    position: relative;
    margin-right: 30px;
}

.avatar-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--dark-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-badges {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.actor-badge {
    background-color: var(--pink-accent);
    color: white;
}

.director-badge {
    background-color: #4e73df;
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.profile-name-en {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pink-accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* بخش‌های مختلف */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* بیوگرافی */
.profile-bio-section {
    padding: 40px 0;
    background-color: var(--dark-secondary);
    margin-bottom: 40px;
}

.bio-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.no-bio {
    padding: 20px;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 8px;
    color: var(--text-secondary);
}

/* آثار */
.profile-works-section {
    padding-bottom: 60px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sort-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sort-btn.active {
    background-color: var(--pink-accent);
    color: white;
}

.sort-btn:hover {
    color: var(--text-primary);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.work-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(233, 69, 132, 0.2);
}

.work-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.work-poster {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
}

.work-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-poster img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-type-badge {
    background-color: var(--pink-accent);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    align-self: flex-start;
    margin-bottom: 10px;
}

.work-rating {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.work-year {
    color: white;
    font-size: 0.8rem;
}

.work-info {
    padding: 15px;
}

.work-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-title-en {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-works {
    padding: 40px;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 8px;
    color: var(--text-secondary);
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -150px;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sort-options {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .profile-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .stat-item {
        flex: 1 0 calc(50% - 15px);
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.login-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.login-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-header h4 {
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 2;
}

.login-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

.login-body {
  padding: 2.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.form-control {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.btn-login {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  padding: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.alert-danger {
  border-radius: 8px;
  background-color: #fff5f5;
  color: #e53e3e;
  border-left: 4px solid #e53e3e;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--gray-color);
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divider::before {
  margin-right: 1rem;
}

.divider::after {
  margin-left: 1rem;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
}

.google-btn {
  background: #DB4437;
}

.facebook-btn {
  background: #4267B2;
}

.twitter-btn {
  background: #1DA1F2;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray-color);
}

.login-footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .login-body {
    padding: 1.5rem;
  }
  
  .login-header {
    padding: 1.2rem;
  }
}
 
 body { padding-top:64px; }
@media(max-width:991.98px){body{padding-top:56px;}}

.upmovi-navbar {background-color:rgba(0,0,0,0.9); transition:.2s;}
.upmovi-navbar.nav-solid {background-color:rgba(0,0,0,0.85); backdrop-filter:saturate(180%) blur(8px); box-shadow:0 2px 10px rgba(0,0,0,.35);}

.upmovi-navbar .navbar-brand img{height:40px;}
.navbar-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:nowrap;flex-shrink:0;}
.navbar-actions .btn,.navbar-actions .dropdown-toggle{padding:.35rem .55rem;}

@media(max-width:991.98px){
  .navbar-actions .btn .text-label{display:none;}
  .navbar-actions .btn.btn-pink .text-label{display:inline !important;}
}

.badge-days{font-weight:600;}
/* ====== Root & Resets ====== */
 :root{
  --bg-hero:rgba(5,47,61,0.05);
  --card-bg:#101010;
  --accent:#E50914;
  --text-muted:#cbd5e1;
  --rating:#ffd166;
  --shadow:0 6px 18px rgba(0,0,0,.25);
  --radius-hero:16px;
  --radius-card:12px;
  --gap:1rem;
  --gap-sm:8px;
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; border-radius: 0px;
  background: var(--bg-hero); color: #fff; min-height: 80vh; display: flex; align-items: center!important;
}
.hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.6);
  transform: scale(1.1);

  /* محو تدریجی از بالا به پایین */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,    /* شروع */
    rgba(0,0,0,0.25) 60%,  /* تدریجی */
    rgba(0,0,0,0.15) 80%,  /* خیلی ملایم */
    rgba(0,0,0,0) 100%     /* محو کامل */
  );
}

.hero .content {
  position: relative; z-index: 1; padding: 1rem;
}
.hero .title {
  font-size: clamp(28px, 5vw, 42px); font-weight: 800; margin-bottom: .75rem;
}
.hero .subtitle { color: var(--text-muted); max-width: 720px; }
.hero .searchbar {
  margin-top: 1.25rem; display:flex; gap:.5rem; max-width: 640px;
}
.hero .searchbar input {
  color:#fff;flex:1; border: 0; padding: .9rem 1rem; border-radius: 8px; outline: none;background:rgba(255,255,255,0.1)
}
.hero .searchbar button {
  border: 0; border-radius: 8px; padding: .9rem 1.2rem; background: #000; color:#ed9e12; font-weight:600;
}

/* ===== Swiper (featured) ===== */
.swiper { width: 100%; padding: 1rem 0; }
.swiper-slide { width: 460px !important; }
.feature-card {
  position: relative; border-radius: 12px; overflow:hidden; background:#1f1f1f; height: 350px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); display:block;
}
.feature-card img { width: 100%; height: 100%; object-fit: cover; display:block; }
.feature-card .badge-rating {
  position: absolute; top: .5rem; inset-inline-end: .5rem; /* RTL-aware */
  background: #fec32b; color: #000; padding: .2rem .45rem; border-radius: .4rem; font-size:.9rem; font-weight:700;
}
.feature-card .badge-year {
  position: absolute; top: .5rem; inset-inline-start: .5rem; /* RTL-aware */
  background: rgba(0,0,0,.65); color: #fff; padding: .2rem .45rem; border-radius: .4rem; font-size:.85rem; font-weight:700;
}

/* ===== Layout ===== */
.main-wrapper { display:flex; gap:var(--gap); }
.content { flex: 1; min-width:0; }

/* ===== Grid ===== */
.movie-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

/* ===== Card ===== */
.movie-card {
  position:relative; overflow:hidden; border-radius:var(--radius-card);
  background:var(--card-bg); color:#fff; box-shadow: var(--shadow);
  will-change: transform;
}

.movie-card .card-img-top {
  /* نمایش تصویر پس‌زمینه */
  background-size: cover;             /* دسکتاپ: شیک با کراپ کنترل‌شده */
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .35s ease, background-size .2s ease;
}

.movie-card:hover .card-img-top { transform: scale(1.03); }

.movie-card .card-img-overlay {
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:flex-end;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.95));
  padding: .5rem 
}

/* Badges (سال و امتیاز) — RTL-aware با inset-inline */
.movie-card .movie-year{
  position:absolute; top:.5rem; inset-inline-start:.6rem;
  background: rgba(0,0,0,0.1); padding:.2rem .45rem; border-radius:.35rem;
  font-size:.85rem; font-weight:700; color:#fec32b;
}
.movie-card .movie-rating{
  position:absolute; top:.5rem; inset-inline-end:.5rem;
  display:flex; align-items:center; gap:.25rem;
  background: #fec32b; border-radius:.5rem; padding:.2rem .45rem;
  font-weight:700; color:#000;
}

/* عنوان دو خطی دقیق */
.movie-card .movie-title {
  font-size: 1rem; font-weight: 800; margin: 0; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* زیرعنوان یک خطی */
.movie-card .movie-subtitle {
  font-size: .85rem; opacity:.85; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* لینک کشیده */
.stretched-link { position:absolute; inset:0; }

/* فوکوس دسترس‌پذیر برای کیبورد */
.movie-card:focus-within,
.movie-card a:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-card);
}

/* ===== Mobile (≤576px): 2 ستون، تصویر کامل بدون کراپ ===== */
@media (max-width: 576px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
  }

  /* تصویر کامل نمایش داده شود (letterbox در صورت نسبت متفاوت) */
  .movie-card .card-img-top {
    background-size: contain;    /* کل تصویر دیده شود */
    background-color: #000;      /* حاشیه بالا/پایین مشکی */
       transform: none;
  }
  .movie-card:hover .card-img-top { transform: none; }

  /* تایپوگرافی جمع‌وجورتر */
  .movie-card .movie-title { font-size: .95rem; }
  .movie-card .movie-subtitle { font-size: .8rem; }
}

/* ===== Tablet (≥577px و ≤991px): 3 ستون متناسب ===== */
@media (min-width: 577px) and (max-width: 991.98px){
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
  }
}

/* ===== Performance: ترجیح اسکرول نرم روی موبایل ===== */
@media (pointer:coarse){
  .swiper { -webkit-overflow-scrolling: touch; }
}
:root {
  --primary-color: #6c63ff;
  --secondary-color: #4a42e8;
  --accent-color: #ff6584;
  --dark-color: #2d3748;
  --light-color: #f8f9fa;
  --gray-color: #718096;
}

.torrent-guide {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
}

.torrent-guide h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.torrent-guide h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.torrent-guide .lead {
  font-size: 1.2rem;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.torrent-guide h3 {
  color: var(--dark-color);
  margin-top: 3rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--primary-color);
  background-color: rgba(108, 99, 255, 0.05);
  border-radius: 0 8px 8px 0;
  font-weight: 700;
}

.torrent-guide p, .torrent-guide ul {
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.torrent-guide ul {
  list-style: none;
  padding-left: 0;
}

.torrent-guide ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
}

.torrent-guide ul li::before {
  content: 'â€¢';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
}

.torrent-guide .app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.torrent-guide .app-buttons a {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.torrent-guide .app-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.torrent-guide .app-buttons a i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.torrent-guide .faq-section li {
  background: white;
  padding: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 3px solid var(--primary-color);
}

.torrent-guide .faq-section li strong {
  color: var(--dark-color);
}

.torrent-guide .alert {
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 5px solid var(--primary-color);
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.torrent-guide .text-muted {
  font-size: 0.95rem;
  color: #a0aec0 !important;
}

@media (max-width: 768px) {
  .torrent-guide h1 { font-size: 2rem; }
  .torrent-guide .lead { font-size: 1.1rem; }
  .torrent-guide .app-buttons { flex-direction: column; }
  .torrent-guide .app-buttons a { width: 100%; justify-content: center; }
}
     :root {
            --primary-color: #6366f1;
            --primary-hover: #4f46e5;
            --dark-bg: #0f172a;
            --dark-card: #1e293b;
            --dark-text: #f8fafc;
            --dark-border: #334155;
            --dark-input-bg: #334155;
            --error-color: #ef4444;
            --success-color: #10b981;
        }
        
     
        .login-container {
            width: 100%;
            max-width: 420px;
            margin: auto;
            margin-top:50px;
            min-height:60vh;
        }
        
        .login-card {
            background-color: var(--dark-card);
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            border: 1px solid var(--dark-border);
            transition: transform 0.3s ease;
        }
        
        .login-card:hover {
            transform: translateY(-5px);
        }
        
        .login-header {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
            color: white;
            padding: 25px;
            text-align: center;
            position: relative;
        }
        
        .login-header h4 {
            margin: 0;
            font-weight: 600;
            font-size: 1.5rem;
        }
        
        .login-body {
            padding: 30px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--dark-text);
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            background-color: var(--dark-input-bg);
            border: 1px solid var(--dark-border);
            border-radius: 0px;
            color: var(--dark-text);
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        
        .input-group {
            display: flex;
            margin-bottom: 20px;
        }
        
        .input-group-text {
            background-color: var(--dark-input-bg);
            border: 1px solid var(--dark-border);
            border-right: none;
            border-radius: 0px 0 0 0px;
            padding: 12px 15px;
            color: var(--dark-text);
        }
        
        .input-group input {
            border-radius: 0 0px 0px 0;
            border-left: none;
        }
        
        .btn-login {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            font-size: 1rem;
        }
        
        .btn-login:hover {
            background-color: var(--primary-hover);
        }
        
        .toggle-password {
            background-color: var(--dark-input-bg);
            border: 1px solid var(--dark-border);
            border-left: none;
            border-radius: 0 8px 8px 0;
            color: var(--dark-text);
            cursor: pointer;
        }
        
        .form-check {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .form-check-input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary-color);
            cursor: pointer;
        }
        
        .forgot-password {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
        }
        
        .forgot-password:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }
        
        .alert {
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .alert-danger {
            background-color: rgba(239, 68, 68, 0.15);
            border: 1px solid var(--error-color);
            color: var(--error-color);
        }
        
        .extra-options {
            margin-top: 20px;
            text-align: center;
            font-size: 0.9rem;
            color: #94a3b8;
        }
        
        .extra-options a {
            color: var(--primary-color);
            text-decoration: none;
            margin: 0 5px;
        }
        
        .extra-options a:hover {
            text-decoration: underline;
        }
            :root {
            --primary-color: #6366f1;
            --primary-hover: #4f46e5;
            --secondary-color: #8b5cf6;
            --dark-bg: #0f172a;
            --dark-card: #1e293b;
            --dark-border: #334155;
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
        }
        
 
        
        .dashboard-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
        
    
        
        .sidebar-item {
            padding: 12px 20px;
            margin: 4px 0;
            color: var(--text-secondary);
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
        }
        
        .sidebar-item:hover {
            background-color: rgba(99, 102, 241, 0.1);
            color: var(--text-primary);
            border-left: 3px solid var(--primary-color);
        }
        
        .sidebar-item.active {
            background-color: rgba(99, 102, 241, 0.2);
            color: var(--primary-color);
            border-left: 3px solid var(--primary-color);
            font-weight: 500;
        }
        
        .sidebar-item i {
            margin-left: 10px;
            font-size: 1.1rem;
        }
        
        .main-content {
            background: var(--dark-card);
            border-radius: 12px;
            border: 1px solid var(--dark-border);
            padding: 25px;
        }
        
        .card-film {
            transition: transform 0.3s ease;
            margin-bottom: 20px;
        }
        
        .card-film:hover {
            transform: translateY(-5px);
        }
        
        .card-film img {
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }
        
        .card-film:hover img {
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
        }
        
        .balance-card {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 20px;
            border: none;
        }
        
        .table-responsive {
            border-radius: 8px;
            overflow: hidden;
        }
        
        .table {
            color: var(--text-primary);
            border-color: var(--dark-border);
        }
        
        .table-dark {
            --bs-table-bg: var(--dark-card);
            --bs-table-striped-bg: rgba(255,255,255,0.05);
            --bs-table-hover-bg: rgba(99, 102, 241, 0.1);
            border-color: var(--dark-border);
        }
        
        .table thead {
            background-color: var(--primary-color);
            color: white;
        }
        
        .badge {
            padding: 6px 10px;
            font-weight: 500;
            font-size: 0.8rem;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        
        .btn-primary:hover {
            background-color: var(--primary-hover);
            border-color: var(--primary-hover);
        }
        
        .btn-outline-primary {
            color: var(--primary-color);
            border-color: var(--primary-color);
        }
        
        .btn-outline-primary:hover {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        
        .page-title {
            color: var(--text-primary);
            font-weight: 600;
            margin-bottom: 25px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--dark-border);
        }
        
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            background-color: rgba(30, 41, 59, 0.5);
            border-radius: 12px;
            border: 1px dashed var(--dark-border);
        }
        
        .empty-state i {
            font-size: 3rem;
            color: var(--dark-border);
            margin-bottom: 15px;
        }
        
        .form-control, .form-select {
            background-color: var(--dark-card);
            border-color: var(--dark-border);
            color: var(--text-primary);
        }
        
        .form-control:focus, .form-select:focus {
            background-color: var(--dark-card);
            border-color: var(--primary-color);
            color: var(--text-primary);
            box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
        }
        
        .dropdown-menu {
            background-color: var(--dark-card);
            border-color: var(--dark-border);
        }
        
        .dropdown-item {
            color: var(--text-primary);
        }
        
        .dropdown-item:hover {
            background-color: rgba(99, 102, 241, 0.2);
            color: var(--primary-color);
        }
        
        .alert {
            border: 1px solid transparent;
        }
        
        .text-muted {
            color: var(--text-secondary) !important;
        }
          :root {
            --dark-bg: #0f0f1a;
            --dark-card: #1a1a2e;
            --dark-border: #2d2d4d;
            --dark-text: #e0e0ff;
            --plan-1: linear-gradient(135deg, #ff6b6b, #ff8e8e);
            --plan-2: linear-gradient(135deg, #4e54c8, #8f94fb);
            --plan-3: linear-gradient(135deg, #00b09b, #96c93d);
            --plan-4: linear-gradient(135deg, #ff8c00, #ffb347);
            --accent-glow: 0 0 15px rgba(255, 255, 255, 0.2);
        }
        
     
        .container {
            flex: 1;
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }
        
        .page-title {
            text-align: center;
            margin: 2rem 0 3rem;
            font-weight: 800;
            font-size: 2.5rem;
            background: linear-gradient(90deg, #ff6b6b, #4e54c8, #00b09b, #ff8c00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
            padding-bottom: 15px;
        }
        
        .page-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, #ff6b6b, #4e54c8, #00b09b, #ff8c00);
            border-radius: 4px;
        }
        
        .plans-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .plan-card {
            background: var(--dark-card);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transition: all 0.4s ease;
            border: 1px solid var(--dark-border);
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
        }
        
        .plan-card:nth-child(1):hover {
            box-shadow: 0 15px 35px rgba(255, 107, 107, 0.25);
        }
        
        .plan-card:nth-child(2):hover {
            box-shadow: 0 15px 35px rgba(78, 84, 200, 0.25);
        }
        
        .plan-card:nth-child(3):hover {
            box-shadow: 0 15px 35px rgba(0, 176, 155, 0.25);
        }
        
        .plan-card:nth-child(4):hover {
            box-shadow: 0 15px 35px rgba(255, 140, 0, 0.25);
        }
        
        .plan-card:hover {
            transform: translateY(-12px);
        }
        
        .plan-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            z-index: -1;
            border-radius: 18px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .plan-card:nth-child(1)::before {
            background: var(--plan-1);
        }
        
        .plan-card:nth-child(2)::before {
            background: var(--plan-2);
        }
        
        .plan-card:nth-child(3)::before {
            background: var(--plan-3);
        }
        
        .plan-card:nth-child(4)::before {
            background: var(--plan-4);
        }
        
        .plan-card:hover::before {
            opacity: 1;
        }
        
        .plan-header {
            padding: 30px 20px;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .plan-card:nth-child(1) .plan-header {
            background: var(--plan-1);
        }
        
        .plan-card:nth-child(2) .plan-header {
            background: var(--plan-2);
        }
        
        .plan-card:nth-child(3) .plan-header {
            background: var(--plan-3);
        }
        
        .plan-card:nth-child(4) .plan-header {
            background: var(--plan-4);
        }
        
        .plan-header::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
            opacity: 0.5;
        }
        
        .plan-name {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0 0 10px;
            position: relative;
            z-index: 1;
        }
        
        .plan-price {
            font-size: 2.8rem;
            font-weight: 800;
            margin: 0;
            position: relative;
            z-index: 1;
        }
        
        .plan-price span {
            font-size: 1.2rem;
            font-weight: 400;
            opacity: 0.9;
        }
        
        .plan-duration {
            font-size: 1rem;
            opacity: 0.9;
            margin-top: 5px;
            position: relative;
            z-index: 1;
        }
        
        .plan-features {
            padding: 30px 25px;
            flex-grow: 1;
        }
        
        .feature-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .feature-list li {
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            position: relative;
        }
        
        .feature-list li:before {
            content: "✓";
            font-weight: bold;
            margin-right: 12px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .plan-card:nth-child(1) .feature-list li:before {
            background: rgba(255, 107, 107, 0.2);
            color: #ff6b6b;
        }
        
        .plan-card:nth-child(2) .feature-list li:before {
            background: rgba(78, 84, 200, 0.2);
            color: #4e54c8;
        }
        
        .plan-card:nth-child(3) .feature-list li:before {
            background: rgba(0, 176, 155, 0.2);
            color: #00b09b;
        }
        
        .plan-card:nth-child(4) .feature-list li:before {
            background: rgba(255, 140, 0, 0.2);
            color: #ff8c00;
        }
        
        .feature-list li:last-child {
            border-bottom: none;
        }
        
        .plan-actions {
            padding: 25px;
            text-align: center;
            border-top: 1px solid var(--dark-border);
        }
        
        .btn-subscribe {
            color: white;
            border: none;
            padding: 16px 40px;
            border-radius: 50px;
            font-weight: 700;
            transition: all 0.3s ease;
            width: 100%;
            position: relative;
            overflow: hidden;
            font-size: 1.1rem;
            letter-spacing: 0.5px;
        }
        
        .plan-card:nth-child(1) .btn-subscribe {
            background: var(--plan-1);
        }
        
        .plan-card:nth-child(2) .btn-subscribe {
            background: var(--plan-2);
        }
        
        .plan-card:nth-child(3) .btn-subscribe {
            background: var(--plan-3);
        }
        
        .plan-card:nth-child(4) .btn-subscribe {
            background: var(--plan-4);
        }
        
        .btn-subscribe:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: 0.5s;
        }
        
        .btn-subscribe:hover:before {
            left: 100%;
        }
        
        .btn-subscribe:hover {
            transform: scale(1.05);
            box-shadow: var(--accent-glow);
        }
        
        .btn-secondary {
            background: #333;
            color: #ccc;
            border: 1px solid #444;
            padding: 16px 40px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
            font-size: 1.1rem;
        }
        
        .btn-secondary:hover {
            background: #444;
            color: #fff;
            transform: scale(1.05);
        }
        
        .recommended {
            position: relative;
            transform: scale(1.05);
            z-index: 10;
        }
        
        .recommended-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #fff;
            color: #000;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 800;
            z-index: 10;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        /* Modal Styles */
        .modal-content {
            background: var(--dark-card);
            color: var(--dark-text);
            border: 1px solid var(--dark-border);
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }
        
        .modal-header {
            border-bottom: 1px solid var(--dark-border);
            background: linear-gradient(90deg, #1a1a2e, #16213e);
            color: white;
        }
        
        .modal-footer {
            border-top: 1px solid var(--dark-border);
        }
        
        .btn-close {
            filter: invert(1);
        }
        
        .form-control, .form-select {
            background-color: #2a2a2a;
            border: 1px solid #444;
            color: var(--dark-text);
            border-radius: 10px;
            padding: 12px 16px;
        }
        
        .form-control:focus, .form-select:focus {
            background-color: #2a2a2a;
            border-color: #8f94fb;
            box-shadow: 0 0 0 0.25rem rgba(143, 148, 251, 0.25);
            color: var(--dark-text);
        }
        
        .form-label {
            font-weight: 600;
            color: #8f94fb;
            margin-bottom: 8px;
        }
        
        .alert {
            background-color: #2a2a2a;
            color: var(--dark-text);
            border: 1px solid #444;
            border-radius: 10px;
        }
        
        .alert-info {
            border-left: 4px solid #4e54c8;
        }
        
        .alert-warning {
            border-left: 4px solid #ff8c00;
        }
        
        @media (max-width: 1200px) {
            .plans-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .plans-container {
                grid-template-columns: 1fr;
            }
            
            .recommended {
                transform: scale(1);
            }
            
            .page-title {
                font-size: 2rem;
            }
        }
        
        
  .ziabg {
    background: linear-gradient(to bottom, rgba(15, 15, 18, 0.1), var(--dark-bg) 90%);
  }

  .filmbg {
    background-image: linear-gradient(to right, rgba(15, 15, 18, 0.9), rgba(15, 15, 18, 0.6)), url('<?= $film['backdrop'] ?>');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 3rem 0;
  }

  .hero-content {
    backdrop-filter: blur(10px);
    background-color: rgba(15, 15, 18, 0.5);
    border-radius: 15px;
    padding: 0.5rem;
    margin: 0 auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 0px solid rgba(255, 45, 117, 0.2);
  }

 

  h1, h2, h3, h4, h5, h6 {
    color: white;
    font-weight: 700;
  }

  h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #ff2d75, #ff6b9a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 0.5rem !important;
  }

  .icon-info span {
    background: rgba(0,0,0,0.4);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    border: 1px solid rgba(0,0,0,0.7);
  }

  .icon-info i {
    color: #f6ad1a;
    margin-left: 0.3rem;
  }

  .badge {
    background-color: var(--primary-dark);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    margin-right: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none !important;
  }

  .badge:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
  }

  .btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-dark);
    padding: 0.7rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 45, 117, 0.4);
  }

  .btn-danger:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 45, 117, 0.6);
  }

  /* Navigation Tabs */
  .nav-tabs {
         background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 1rem;
border-top-left-radius: 10px;
border-top-right-radius: 10px;

  }

  .nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    background: transparent;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: -1px;
  }

  .nav-tabs .nav-link:hover {
    color: white;
    border-color: transparent;
  }

  .nav-tabs .nav-link.active {
    color: white;
    background: transparent;
    border: none;
  }

  .nav-tabs .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
  }

  .tab-content {
    padding: 0.5rem;
      background: rgba(0, 0, 0, 0.4);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }

  /* Cast & Crew Section */
  .rounded-circle {
    transition: all 0.3s ease;
    border: 0px solid transparent;
  }

  .rounded-circle:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 45, 117, 0.4);
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .hero-content {
      flex-direction: column;
 
    }
    
    .col-md-2 {
      margin-bottom: 1.5rem;
    }
    
    .icon-info {
      justify-content: center;
    }
    
    .nav-tabs {
      padding: 0;
    }
    
    .nav-tabs .nav-link {
      padding: 0.75rem;
      font-size: 0.85rem;
    }
  }

  /* Scrollbar Styling */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--darker-bg);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
  }

  /* Animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-content {
    animation: fadeIn 0.6s ease-out;
  }

  .tab-pane {
    animation: fadeIn 0.4s ease-out;
  }
   .text-gradient {
    background: linear-gradient(90deg, #cf7704 0%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
  }
  
  .hover-scale {
    transition: transform 0.3s ease;
  }
  
  .hover-scale:hover {
    transform: scale(1.05);
  }
  
  .hover-badge {
    transition: all 0.2s ease;
  }
  
  .hover-badge:hover {
    background-color: #2575fc !important;
    color: white !important;
    transform: translateY(-2px);
  }
  
  .poster-image {
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: opacity 0.3s ease;
  }
  
  .film-card:hover .poster-image {
    opacity: 0.9;
  }
  
  .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .film-card:hover .hover-overlay {
    opacity: 1;
  }
  
  .imdb-badge {
    border-radius: 0 0 0 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  
  
  .hover-scale {
    transition: transform 0.3s ease;
  }
  
  .hover-scale:hover {
    transform: scale(1.05);
  }
  
  .hover-badge {
    transition: all 0.2s ease;
  }
  
  .hover-badge:hover {
    background-color: #2575fc !important;
    color: white !important;
    transform: translateY(-2px);
  }
  
  .poster-image {
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: opacity 0.3s ease;
  }
  
  .film-card:hover .poster-image {
    opacity: 0.9;
  }
  
  .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .film-card:hover .hover-overlay {
    opacity: 1;
  }
  
  .imdb-badge {
    border-radius: 0 0 0 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  .ziamb{padding:10px;
       box-shadow: 0 2px 5px rgba(0,0,0,0.4);
       background: rgba(0,0,0,0.3);
       margin-bottom:15px;
       border-radius:15px;
  }
  
    .download-box {
    background-color: rgba(0,0,0,0.3);
      padding: 0.7rem;
 
  }

  .download-box h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 45, 117, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .download-box h3 i {
    font-size: 1.3rem;
  }

  .download-guide {
    display: inline-block;
    margin-bottom: 1.5rem;
    background: rgba(255, 45, 117, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px dashed var(--primary-color);
  }

  .download-guide:hover {
    background: rgba(255, 45, 117, 0.2);
    transform: translateY(-2px);
  }

  .download-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
  }

  .download-item {
    background: rgba(30, 30, 40, 0.6);
    border-radius: 10px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .download-item:hover {
    background: rgba(40, 40, 50, 0.8);
    border-color: rgba(255, 45, 117, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 45, 117, 0.1);
  }

  .download-item .quality,
  .download-item .size,
  .download-item .price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
  }

  .download-item .quality i {
    color: var(--primary-color);
    font-size: 0.9rem;
  }

  .download-item .action {
    display: flex;
    gap: 0.75rem;
  }

  .btn-download,
  .btn-pay {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    border: none;
  }

  .btn-download {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 45, 117, 0.3);
  }

  .btn-download:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 45, 117, 0.4);
  }

  .btn-pay {
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    color: white;
    box-shadow: 0 4px 12px rgba(78, 84, 200, 0.3);
  }

  .btn-pay:hover {
    background: linear-gradient(to right, #4348a8, #7a7fd8);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(78, 84, 200, 0.4);
  }

  .text-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .login-alert {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
  }

  .login-alert a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .login-alert a:hover {
    color: #0a58ca;
    text-decoration: underline;
  }

  @media (max-width: 768px) {
    .download-item {
      grid-template-columns: 1fr;
    }
    
    .download-item .action {
      margin-top: 1rem;
      flex-direction: column;
    }
  }
  .hero-header {
    background-image: linear-gradient(to right, rgba(15, 15, 18, 0.9), rgba(15, 15, 18, 0.6)), url('<?= $series['backdrop'] ?>');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 3rem 0;
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.hero-content {
    backdrop-filter: blur(10px);
    background-color: rgba(15, 15, 18, 0.8);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 0 auto;
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 0px solid rgba(255, 45, 117, 0.2);
    animation: fadeIn 0.6s ease-out;
}

.poster-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    height: 100%;
}

.poster-container:hover {
    transform: scale(1.03);
}

.poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 2/3;
}

 

 
.title-gradient {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #ff2d75, #ff6b9a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.meta-badge {
    background: rgba(0,0,0,.08);
  color: #f6ad1a!important;
  font-weight: 500;
  padding: .35rem .5rem;
  border-radius: .35rem;
  text-decoration: none;
  font-size:16px;
}

.meta-badge:hover {
    background: rgba(255, 45, 117, 0.2);
    transform: translateY(-2px);
}

.meta-badge i {
   color: #f6ad1a!important;
    margin-right: 0.5rem;
}

.top250-badge {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #333 !important;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(246, 211, 101, 0.3);
}

.genre-badge, .country-badge, .language-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 10px;
    margin-right: 0.2rem;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.genre-badge:hover, .country-badge:hover, .language-badge:hover {
    background: rgba(255, 45, 117, 0.2);
    transform: translateY(-2px);
}

.plot-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.nav-tabs {
    border-bottom: 1px solid rgba(255, 45, 117, 0.2);
   
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    padding: 1.2rem 1.8rem;
    font-weight: 600;
    background: transparent;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: -1px;
    font-size: 1rem;
}

.nav-tabs .nav-link:hover {
    color: white;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: white;
    background: transparent;
    border: none;
}

.nav-tabs .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    padding: 2.5rem;
    background: var(--darker-bg);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-top: none;
}

.season-card {
    background: rgba(20, 20, 25, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.season-card:hover {
    background: rgba(25, 25, 30, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.episode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(30, 30, 35, 0.5);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.episode-item:hover {
    background: rgba(40, 40, 45, 0.7);
    border-left: 3px solid var(--primary-color);
}

.episode-info {
    flex: 1;
}

.episode-number {
    font-weight: 600;
    color: white;
}

.episode-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.episode-runtime {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.btn-download {
    background: var(--primary-color);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 45, 117, 0.4);
}

.btn-buy {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: rgba(255, 45, 117, 0.1);
    transform: translateY(-2px);
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
}

.cast-member {
    text-align: center;
    transition: all 0.3s ease;
}

.cast-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.cast-member:hover .cast-photo {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 45, 117, 0.3);
}

.cast-name {
    font-weight: 600;
    color: white;
    margin-bottom: 0.2rem;
}

.cast-name-fa {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.trailer-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.related-series {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 45, 117, 0.2);
}

.related-series h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.related-series h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.series-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 20, 25, 0.6);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 45, 117, 0.3);
}

.series-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.series-card:hover img {
    transform: scale(1.05);
}

.series-info {
    padding: 1rem;
    background: rgba(15, 15, 18, 0.8);
}

.series-title {
    font-weight: 600;
    color: white;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.series-title-fa {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    height: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.series-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.series-rating {
    font-size: 0.9rem;
    color: #ffd700;
    display: flex;
    align-items: center;
}

.series-rating i {
    margin-right: 3px;
}

.series-year {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.seo-links {
    margin-top: 3rem;
    background: rgba(20, 20, 25, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-link {
    display: inline-block;
    margin: 0.3rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none !important;
}

.seo-link:hover {
    background: rgba(255, 45, 117, 0.2);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane {
    animation: fadeIn 0.4s ease-out;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

@media (max-width: 992px) {
    .title-gradient {
        font-size: 2.2rem;
    }
    
    .hero-content {
        padding: 0rem;
      
    }
    
    .nav-tabs .nav-link {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-header {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        flex-direction: column;
   
    }
    
    .title-gradient {
        font-size: 1.8rem;
    }
    
    .nav-tabs {
        padding: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .nav-tabs .nav-link {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .cast-photo {
        height: 100px;
    }
    
    .series-card img {
        height: 150px;
    }
    
    .related-series h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .hero-header {
        border-radius: 0;
    }
    
    .title-gradient {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .meta-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .plot-text {
        font-size: 0.95rem;
    }
    
    .episode-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-download, .btn-buy {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .series-card img {
        height: 120px;
    }
    
    .series-title {
        font-size: 0.85rem;
    }
    
    .series-title-fa {
        font-size: 0.75rem;
    }
    
    .series-rating, .series-year {
        font-size: 0.75rem;
    }
}
.genre-badge,.language-badge,.country-badge  {color:#fff;}
 
.facts-list .fact-item { margin-bottom: .5rem; }
.facts-list .badge { background: rgba(255,255,255,.08); margin-inline: .25rem; }
:root {
  --dark-bg: #121212;
  --dark-secondary: #1e1e1e;
  --pink-primary: #f6ad1a;
  --pink-secondary: #ed9e12;
  --text-color: #f0f0f0;
  --text-secondary: #b0b0b0;
  --bs-dark: #121212;
  --bs-darker: #0a0a0a;
  --bs-card-bg: #1e1e1e;
  --bs-pink: #ed9e12;
  --bs-light-pink: #ed9e12;
  --bs-gold: #f5c518;
  --bs-white: #ffffff;
  --bs-warning: #ffc107;
  --bs-secondary: #6c757d;
}
.meta-label { color:#fff; white-space:nowrap;font-size:12px; }
 
  /* ====== Film Card (Pro) ====== */
    .film-card-pro {
      display: block;
      text-decoration: none;
      color: inherit;
    }
    .film-card-pro .poster-wrap {
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 8px 18px rgba(0,0,0,.25);
      transition: transform .25s ease, box-shadow .25s ease;
      aspect-ratio: 2 / 3; /* نسبت پوستر سینمایی */
      background: #111;
    }
    .film-card-pro .poster-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1);
      transition: transform .35s ease;
      will-change: transform;
    }
    /* لایهٔ گرادیان ثابت برای خوانایی پایه (بدون هاور) */
    .film-card-pro .title-gradient {
      position: absolute;
      left: 0; right: 0; bottom: -10px;
      height: 45%;
      background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,0));
      pointer-events: none;
    }
    /* لایهٔ مشکی که روی هاور قوی‌تر می‌شود */
    .film-card-pro .hover-dim {
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0);
      transition: background .25s ease;
    }
    /* نوار عنوان داخل عکس */
    .film-card-pro .title-bar {
      position: absolute;
      left: 0; right: 0; bottom: 0;
      padding: 10px 10px 8px;
      z-index: 2;
      display: grid;
      gap: 2px;
    }
    .film-card-pro .title-main {
      font-weight: 800;
      font-size: .9rem;        /* کوچیک‌تر */
      line-height: 1.15;
      color: #fff;
      text-shadow: 0 2px 8px rgba(0,0,0,.8);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .film-card-pro .title-sub {
      font-size: .75rem;
      line-height: 1.1;
      color: rgba(255,255,255,.85);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      opacity: .9;
    }

    /* Badge امتیاز */
    .film-card-pro .imdb-badge {
      position: absolute; top: 8px; right: 8px;
      background: #f5c518;
      color: #111;
      font-weight: 800;
      font-size: .72rem;
      padding: 3px 6px;
      border-radius: 6px;
      box-shadow: 0 4px 12px rgba(0,0,0,.35);
      z-index: 3;
    }

    /* Hover states */
    .film-card-pro:hover .poster-wrap {
      transform: translateY(-2px);
      box-shadow: 0 12px 24px rgba(0,0,0,.35);
    }
    .film-card-pro:hover .poster-img {
      transform: scale(1.05);
    }
    .film-card-pro:hover .hover-dim {
      background: rgba(0,0,0,.55);
    }

    /* اطلاعات زیر کارت (در صورت نیاز) */
    .film-card-pro .meta {
      margin-top: .35rem;
      font-size: .75rem;
      color: #aaa;
      display: flex;
      justify-content: space-between;
      gap: .5rem;
    }

    /* فاصله‌ها و ستون‌بندی ریزتر */
    .similar-row {
      --bs-gutter-x: .6rem;
      --bs-gutter-y: .9rem;
    }

    /* جلوگیری از Uppercase اجباری */
    .similar-wrap .film-card-pro, 
    .similar-wrap .film-card-pro * {
      text-transform: none !important;
    }

    /* تراکم بیشتر در دسکتاپ: 6 تا 8 کارت در هر ردیف */
    @media (min-width: 768px){
      .col-md-2-5 { width: 20%; } /* در صورت تمایل: 5 ستونه */
    }
    /* تغییر رنگ placeholder */
.form-control::placeholder {
  color: #ccc;   /* رنگ دلخواه */
  opacity: 1;       /* شفافیت کامل (در بعضی مرورگرها پیشفرض کمتره) */
}

/* برای سازگاری با مرورگرهای قدیمی */
.form-control:-ms-input-placeholder { /* IE 10-11 */
  color: #ccc;
}
.form-control::-ms-input-placeholder { /* Edge قدیمی */
  color: #ccc;
}
/* جلوگیری از Uppercase اجباری در این صفحه */
.series-page, .series-page * { text-transform: none !important; }

/* هدر */
.hero-header {
  position: relative;
  padding: 2rem 0 1rem;
}
.hero-content { position: relative; z-index: 2; }
.title-gradient {
  font-weight: 900;
  margin-bottom: .5rem;
}

/* متا */
.meta-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.08);
  padding: .35rem .6rem; border-radius: 8px; margin-right: .4rem; margin-bottom: .4rem;
}

/* Facts */
.facts-list .fact-item { margin-bottom: .35rem; }
.facts-list .badge {
  background: rgba(255,255,255,.06); color: #fff; border-radius: 999px;
  padding: .2rem .6rem; margin-right: .25rem; margin-bottom: .25rem; display: inline-block;
}

/* تب‌ها */
.nav-tabs .nav-link { border: none; border-bottom: 3px solid transparent; }
.nav-tabs .nav-link.active { border-bottom-color: currentColor; }

/* دانلود گیت / اپیزود */
.series-download-gate {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  border-radius: 12px; padding: 16px;
}
.series-download-gate .gate-icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255,255,255,.06); margin-right: .75rem;
}
.series-episodes { margin-top: 10px; }
.series-episodes .row-gap { row-gap: .6rem; }
.series-episodes .item {
  display:flex; align-items:center; gap:.75rem; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08); border-radius:10px; padding:.6rem .75rem;
}
.series-episodes .q {
  font-weight: 800; min-width: 68px; text-align:center; background: rgba(255,255,255,.08);
  border-radius: 8px; padding: .25rem .5rem;
}

/* اشخاص */
.person-card { text-align:center; }
.person-card img { object-fit:cover; width:100px; height:100px; border-radius: 50%; }
.person-card .name { margin-top:.35rem; font-weight:600; }

/* پوستر */
.poster-container img { width:100%; height:auto; border-radius: 12px; object-fit: cover; }
 /* فاصله‌ها جمع‌وجورتر */
.upmovi-navbar .navbar-actions {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.upmovi-navbar .btn-sm { 
  padding: .25rem .5rem;
  line-height: 1.2;
}

/* روی موبایل فقط آیکون‌ها؛ متن‌ها مخفی */
@media (max-width: 575.98px) {
  .upmovi-navbar .text-label { }
  .upmovi-navbar .navbar-brand img { max-height: 22px !important; }
  .upmovi-navbar .navbar-actions { gap: .05rem; }
  .upmovi-navbar .btn-sm i { margin: 0 !important; } /* حذف فاصله آیکون‌ها */
}
.card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container-fluid{max-width:2400px;}