/* تحسينات الصور - جودة أعلى */
img {
  image-rendering: -webkit-optimize-contrast; /* لكروم وسفاري */
  image-rendering: crisp-edges; /* لفايرفوكس */
  image-rendering: high-quality; /* فولباك */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* إزالة التحويلات الغير ضرورية */
.postbody {
  width: 100%;
  margin-bottom: 3rem;
}
.mainslider .limit .sliderinfo {

    margin-right: 40px;
    box-shadow: 20px 0px 4rem 6rem var(--navbar);

}
.wrapper {
  margin: 0;
}

/* Flame-chan */
.flame {
  display: block;
  width: 70px;
  top: 40px;
  position: relative;
}

.flame-1 {
  left: 165px;
}

.flame-2 {
  left: 155px;
}

/* Mobile Slider - محسّن */
.big-slider {
  padding: 20px 0;
  height: 550px;
  overflow: hidden;
  position: relative;
}

.swiper-button-next,
.swiper-button-prev {
  top: 35%;
  color: white;
  font-weight: 900;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
}

.swiper-slide .slide-thumbnail-container:after {
  content: "";
  width: 100%;
  left: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.15)
  );
  position: absolute;
  height: 100%;
  border-radius: 15px;
}

.swiper-slide-active .slide-thumbnail-container:after {
  content: none;
}

.big-slider .tt {
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1.35rem;
}

.big-slider .swiper-wrapper {
  text-align: center;
  justify-content: space-between;
}

.big-slider .swiper-slide {
  width: 240px;
  height: 360px;
  border-radius: 10px;
}

/* تحسين الصور في السلايدر */
.big-slider img {
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  box-shadow: 0 0 0.8em 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform;
}

.big-slider img:hover {
  transform: scale(1.02);
}

.big-slider .bigor {
  display: none;
}

.big-slider .swiper-slide-active .bigor {
  display: block;
}

.big-slider .extra-info {
  justify-content: center;
  margin-bottom: 3px;
  line-height: 1rem;
}

.big-slider .numscore {
  font-size: 0.8rem;
  font-weight: 300;
}

.big-slider a:hover .extra-info {
  color: white;
}

.big-slider .status > i {
  font-size: 0.8rem;
  font-weight: 300;
  color: white;
}

.big-slider ul.sliderInfoGenre {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  justify-content: center;
  padding: 0;
}

.big-slider li {
  color: white;
  background: var(--greys);
  padding: 5px 6px;
  border-radius: 25px;
  margin: 2px;
  font-size: 0.7rem;
  font-weight: normal;
  line-height: normal;
}

.swiper-pagination-bullets {
  bottom: initial !important;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pop Today */
.hotslid {
  margin-bottom: 20px;
}

.pop-list .paging {
  margin: 25px 0;
  height: 1px;
}

.pop-list .swiper-pagination {
  display: flex;
  align-items: center;
  bottom: initial;
  justify-content: center;
}

.swiper-pagination-bullet {
  background: var(--greys);
  opacity: 1;
  margin: 0 2px;
  height: 6px;
  width: 6px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--accents);
  height: 8px;
  width: 8px;
}

.hothome .releases h2 {
  padding: 10px 0;
  margin: 0;
  background: none;
  border-radius: 0;
  font-size: 1.4rem;
  font-weight: 500;
}

.listhot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.full .bs {
  width: 100%;
}

/* تحسين صور الكاردز */
.bs .bsx .limit {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.bs .bsx .limit::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.bs .bsx .limit:hover::after {
  background: rgba(0, 0, 0, 0.3);
}

.bs .bsx .limit img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.bs .bsx .limit:hover img {
  transform: scale(1.05);
}

.bs .bsx .tt {
  font-weight: normal;
  line-height: 1.1rem;
  margin-top: 10px;
  height: 3.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.1rem;
  line-height: 1.2rem;
}

.bs .bsx .adds {
  display: none;
}

i {
  line-height: normal;
}

.mobile-rt {
  display: flex;
  gap: 0.25rem;
  font-weight: 300;
  font-size: 0.75rem;
  padding: 4px;
  align-items: center;
}

.mobile-rt i {
  color: var(--ratings);
  position: relative;
  top: -1px;
}

.imptdt i,
.imptdt a {
  margin: 0;
}

.extra-info {
  display: flex;
  justify-content: space-between;
}

.status {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  padding: 2px;
}

.status > i {
  font-size: 0.8rem;
  font-weight: 300;
  color: white;
}

.imptdt {
  padding: 4px;
}

.status-dot {
  height: 10px;
  width: 10px;
  border-radius: 100%;
  display: inline-block;
  position: relative;
}

.status-dot.Dropped {
  background: red;
}

.status-dot.Ongoing {
  background: var(--status);
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.status-dot.Mass.Released {
  background: var(--status);
  animation: blink 2s infinite;
}

.status-dot.Completed {
  background: purple;
}

.status-dot.Coming.Soon {
  background: yellow;
}

/* Latest Updates */
.latest-updates {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.latest-updates .bs .bsx .tt {
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.1rem;
  height: initial;
}

.releases {
  border-bottom: 1px solid var(--accents);
}

.releases h2 {
  font-size: 1.4rem;
  font-weight: 500;
}

.latest-updates .bs.styletere {
  width: 100%;
}

.latest-updates .bs .bsx {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 0.5rem;
}

.bs .bsx .limit img:hover .bsx .bigor a {
  color: var(--accents);
}

.latest-updates .bigor {
  display: flex;
  flex-direction: column;
  height: auto;
}

@keyframes new-chapter {
  0%,
  100% {
    border-color: var(--accents);
  }
  30% {
    border-color: var(--greys);
  }
}

.latest-updates .bs .bsx .adds.new {
  animation: new-chapter 2s infinite;
}

.latest-updates .chapter-list {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: flex-end;
}

.latest-updates .bs .bsx .adds {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--greys);
  border-radius: 25px;
  padding: 0.3rem;
  font-size: 0.83rem;
  font-weight: normal;
  transition: all 0.3s ease;
}

.latest-updates .bs.styletere .bsx .tt {
  margin: 0;
  height: auto;
}

.latest-updates .bs.styletere .epxs {
  font-size: 0.85rem;
  color: var(--greys);
  font-weight: 500;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.latest-updates .bs.styletere .epxdate {
  margin: 0;
  font-size: 0.6rem;
  margin-left: 10px;
}

.latest-updates .adds.all {
  flex-direction: column;
  color: white;
  border-color: var(--accents) !important;
}

.latest-updates .bs.styletere .adds:hover {
  border-color: var(--accents);
  background: var(--accents);
  color: white;
}

.latest-updates .adds:hover .epxs {
  color: white;
}

.release .vl {
  display: none;
}

.vl-mobile {
  border: 2px solid white;
  text-align: center;
  padding: 0.4rem 0;
  border-radius: 25px;
  font-size: 0.8rem;
  margin: 1rem;
  transition: all 0.3s ease;
}

.bs .bsx .numscore {
  color: white;
  line-height: normal;
}

.releases .vl {
  display: none;
}

.bs {
  width: 100%;
}

.bs.styletere .bsx .tt {
  font-weight: normal;
  line-height: 1.1rem;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.1rem;
  line-height: 1.2rem;
}

a.vl-mobile:hover {
  background: var(--accents);
  color: white;
  border-color: var(--accents);
}

/* Coming Soon */
.coming-soon a:hover {
  color: white;
}

.vl-mobile.coming-soonn:hover {
  background: var(--accents);
  color: white;
  border-color: var(--accents);
}

.releases,
.hothome,
.bixbox {
  background: transparent !important;
  padding: 10px;
  box-shadow: none;
}

.hothome .releases {
  padding: 0 10px;
  border-bottom: 1px solid var(--accents);
}

.coming-soon .listupd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.vl-mobile.coming-soonn {
  margin: 0 25px;
}

/* Tablet */
@media (min-width: 570px) {
  .latest-updates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .vl-mobile {
    grid-column: 1 / -1;
  }
  
  .coming-soon .listupd {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .listupd {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }
  
  .navbar i.fas.fa-times-circle {
    margin-top: 0.4rem;
  }
}

/* Fix Genre Bar */
@media (min-width: 890px) and (max-width: 928px) {
  .home-genres .genre-listx a:last-child {
    display: none;
  }
  
  #main-menu ul li {
    margin: 0 10px;
  }
}

/* Desktop */
@media (min-width: 890px) {
  .navbar.home-nav {
    position: absolute;
    z-index: 2;
    background: rgba(2, 1, 1, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Slider Start */
  .big-slider {
    padding: 0;
    height: 500px;
    overflow: hidden;
    position: relative;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    top: 50%;
    opacity: 1;
  }
  
  .sliderInfoGenre li {
    color: white;
  }

  .mainslider::before {
    background: none;
  }

  .mainslider .limit {
    position: relative;
    background: var(--navbar);
    overflow: hidden;
    height: 500px;
    display: flex;
  }
  
  .mainslider .limit::before {
    display: none;
  }

  .mainslider .limit .sliderinfo {
    display: block;
    bottom: 0;
    z-index: 5;
    position: relative;
    width: 25%;
  }
  
  .mainslider .tt {
    font-size: 3rem;
    line-height: 2.6rem;
    width: 175%;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  }

  /* تحسين صورة البانر الكبير */
  .mainslider .limit .bigbanner {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 500px;
    width: 75%;
    position: relative;
    transition: transform 0.5s ease;
  }
  
  .mainslider .bigbanner:before {
    content: "";
    background: linear-gradient(
      90deg,
      rgba(2, 1, 1, 1) 2%,
      rgba(2, 1, 1, 1) 12%,
      transparent 38%,
      transparent 97%,
      transparent 100%
    );
    width: 110%;
    height: 100%;
    right: -10%;
    top: 0;
    position: absolute;
    pointer-events: none;
  }
  
  .mainslider .limit:hover .bigbanner {
    transform: scale(1.02);
  }
  
  .mainslider .limit .bigbanner:hover {
    color: white;
  }
  
  .mainslider .limit .sliderinfo .sliderinfolimit {
    width: 100%;
    margin: 0;
    margin-left: 3vw;
    margin-top: 45%;
    text-align: start;
  }
  
  .mainslider .limit:hover {
    color: white;
  }
  
  .mainslider .mobile-rt {
    font-weight: 400;
    font-size: 1rem;
  }
  
  .mainslider .status > i {
    font-size: 1rem;
    font-weight: 400;
    color: white;
  }
  
  .mainslider .extra-info {
    justify-content: flex-start;
  }
  
  .swiper-button-next:after {
    content: "\f054";
    font-weight: 900;
    font-family: "Font Awesome 5 Free";
    color: white;
  }
  
  .swiper-button-prev:after {
    content: "\f053";
    font-weight: 900;
    font-family: "Font Awesome 5 Free";
    color: white;
  }

  .big-slider ul.sliderInfoGenre {
    justify-content: flex-start;
  }

  .sliderInfoGenre li {
    list-style: none;
    margin: 0.1rem;
    padding: 4px 6px;
    border-radius: 25px;
    font-size: 90%;
    color: white;
    background: var(--greys);
  }
  
  a:hover .mainslider .tt {
    color: white;
  }

  /* Genres */
  .home-genres {
    position: relative;
    display: flex;
    background: var(--navbar) !important;
    margin: 0;
    align-items: center;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    justify-content: center;
    z-index: 1;
  }

  .home-genres .genre-listx {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    margin: 0 0.8rem;
  }

  .home-genres .genre-left-text {
    padding: 0 10px;
    font-size: 130%;
    font-weight: 500;
  }
  
  .home-genres .genre-all-genres a {
    color: var(--accents);
    padding: 0 10px;
    font-size: 100%;
    font-weight: 400;
    transition: color 0.3s ease;
  }

  .home-genres .genre-listx > a {
    color: white;
    border: 2px solid var(--accents);
    border-radius: 100px;
    padding: 9px 12px;
    margin: 10px 5px;
    line-height: 10px;
    font-size: 13px;
    text-transform: capitalize;
    transition: all 0.3s ease;
  }
  
  .home-genres .genre-listx > a:hover {
    background: var(--accents);
    transform: translateY(-2px);
  }
  
  .home-genres .genre-all-genres a:hover {
    color: white;
  }
  
  .pop-list-desktop {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
  
  .latest-updates {
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    gap: 1rem;
  }
  
  .latest-updates .bs.styletere .epxs {
    font-size: 0.8rem;
  }
  
  .latest-updates .bs .bsx .adds {
    padding: 5px;
  }
  
  .vl-mobile {
    grid-column: 1 / 4;
    width: 45%;
    margin-top: 1rem;
  }

  /* Coming Soon */
  .vl-mobile.coming-soonn {
    width: 30rem;
    margin: 0;
  }
  
  .coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .status > i {
    font-weight: 400;
  }
  
  .mobile-rt {
    font-weight: 400;
  }
  
  .coming-soon .listupd {
    display: flex;
    gap: 1rem;
  }
}

.slidernew {
  margin-top: 20px;
  position: relative;
}

.swiper-container {
  position: relative;
}

/* تحسين صور السلايدر */
.slider-content {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.slider-content:hover {
  transform: scale(1.01);
}

@media (max-width: 1024px) {
  .slider-content {
    height: 400px;
  }
  
  .listhot {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .slidernew {
    margin-top: 15px;
  }

  .slider-content {
    height: 300px;
  }
  
  .listhot {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .slidernew {
    margin-top: 15px;
  }

  .slider-content {
    height: 220px;
  }
  
  .big-slider {
    height: 450px;
  }
  
  .big-slider img {
    height: 320px;
  }
}

.slidernew .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-pagination {
  margin-top: 30px;
}

.latest-wrap-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0;
}

.latest-wrap-btn a#load-more {
  display: block;
  width: 80%;
  margin: 0 auto;
  text-align: center;
  padding: 10px 0;
  transition: all 0.3s ease;
}

@media (max-width: 600px) {
  .latest-wrap-btn a#load-more {
    width: 100%;
  }
}

.no-chapters {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
}