@import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

      :root {
        --background: #0a0a0a;
        /* --box-background: #23252b; */
        --box-background: #201f31;
        --primary: #f47521;
        --secondary: #009688;
        --highlights: #fbc02d;
        --text: #f5f5f5;
        --dropdown-bg: #1f1e31eb;
        --dropdown-hover: #2c2e36;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        margin: 0;
        padding: 0;
        background-color: var(--background);
        font-family: 'lexend';
      }

      .navbar {
        height: 60px;
        background-color: var(--box-background);
        display: flex;
        justify-content: space-between;
        padding: 0 30px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
      }

      .logo img {
        height: 30px;
      }

      .left-nav .logo {
        display: flex;
        align-items: center;
        height: 100%;
      }

      .middle-nav {
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .middle-nav .navlinks ul {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
      }

      .middle-nav .navlinks ul li {
        position: relative;
      }

      .middle-nav .navlinks ul li a {
        text-decoration: none;
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 16px;
        padding: 10px;
        padding-right: 40px;
        display: block;
      }

      .right-nav {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .right-nav div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
      }

      .right-nav i {
        font-size: 18px;
        color: var(--text);
      }

      /* Dropdown menu styling */
      .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--dropdown-bg);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateY(10px);
        z-index: 999;
      }

      .dropdown-menu.news-dropdown {
        width: 220px;
      }

      .dropdown-menu.news-dropdown .dropdown-item {
        padding: 12px 16px;
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 16px;
        text-decoration: none;
        display: block;
        transition: background-color 0.2s;
      }

      .dropdown-menu.news-dropdown .dropdown-item:hover {
        background-color: var(--dropdown-hover);
      }

      /* User dropdown menu styling */
      .user-dropdown {
        position: fixed; /* Changed from absolute to fixed */
        top: 60px;
        right: 30px;
        width: 250px;
        background-color: var(--dropdown-bg);
        border-radius: 4px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        overflow: hidden;
      }

      .user-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      .user-dropdown-header {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      .user-dropdown-header h3 {
        color: var(--primary);
        font-family: "lexend", sans-serif;
        font-size: 18px;
        margin-bottom: 5px;
      }

      .user-dropdown-header p {
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 13px;
        opacity: 0.7;
      }

      .user-dropdown-body {
        padding: 15px;
      }

      .auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
      }

      .auth-button {
        width: 100%;
        padding: 12px;
        border-radius: 4px;
        font-family: "lexend", sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
      }

      .login-btn {
        background-color: var(--primary);
        color: #000;
      }

      .login-btn:hover {
        background-color: #ff9d33;
      }

      .register-btn {
        background-color: transparent;
        color: var(--text);
        border: 1px solid rgba(255, 255, 255, 0.2);
      }

      .register-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
      }

      .user-dropdown-divider {
        height: 1px;
        background-color: rgba(255, 255, 255, 0.1);
        margin: 8px 0;
      }

      .social-login {
        margin-top: 15px;
      }

      .social-login-title {
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 13px;
        opacity: 0.7;
        text-align: center;
        margin-bottom: 10px;
        position: relative;
      }

      .social-login-title::before,
      .social-login-title::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 70px;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.1);
      }

      .social-login-title::before {
        left: 0;
      }

      .social-login-title::after {
        right: 0;
      }

      .social-buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
      }

      .social-button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.2s;
        border: 1px solid rgba(255, 255, 255, 0.1);
      }

      .social-button i {
        font-size: 16px;
        color: var(--text);
      }

      .social-button:hover {
        background-color: rgba(255, 255, 255, 0.05);
        transform: translateY(-2px);
      }

      .user-dropdown-footer {
        padding: 12px 15px;
        background-color: rgba(0, 0, 0, 0.2);
        text-align: center;
      }

      .user-dropdown-footer a {
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 12px;
        opacity: 0.7;
        text-decoration: none;
        transition: opacity 0.2s;
      }

      .user-dropdown-footer a:hover {
        opacity: 1;
        text-decoration: underline;
      }

      /* User menu overlay */
      .user-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 990;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
      }

      .user-overlay.active {
        opacity: 1;
        visibility: visible;
      }

      /* Mega dropdown menu for categories */
      .mega-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 700px;
        background-color: var(--dropdown-bg);
        display: flex;
        padding: 20px;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
      }

      .category-section {
        flex: 1;
        padding: 10px;
      }

      .category-section h3 {
        color: var(--primary);
        font-family: "lexend", sans-serif;
        font-size: 16px;
        margin-bottom: 8px;
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      .category-section ul {
        list-style: none;
        display: flex;
        flex-direction: column;
      }

      .category-section ul li {
        margin-bottom: 0px; /* Reduced from 2px to 0px */
      }

      .category-section ul li a {
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 14px;
        text-decoration: none;
        transition: color 0.2s;
        padding: 1px 0;
        display: block;
      }

      .category-section ul li a:hover {
        color: var(--highlights);
      }

      /* Show dropdown on hover */
      .has-dropdown:hover .dropdown-menu,
      .has-dropdown:hover .mega-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      .has-dropdown:hover .mega-dropdown {
        transform: translateX(-50%) translateY(0);
      }

      /* Active indicator */
      .middle-nav .navlinks ul li a:hover {
        color: var(--primary);
      }

      .has-dropdown a i {
        margin-left: 5px;
        transition: transform 0.3s;
      }

      .has-dropdown:hover a i {
        transform: rotate(180deg);
      }

      /* Search functionality styles */
      .search-bar {
        position: relative;
        transition: all 0.3s ease;
      }

      .search-bar i {
        transition: color 0.2s ease;
      }

      .search-bar:hover i {
        color: var(--primary);
      }

      /* Update these elements to position correctly with fixed navbar */
.search-container {
  position: fixed; /* Changed from absolute to fixed */
  top: 60px;
  right: 0;
  width: 350px;
  background-color: var(--dropdown-bg);
  border-radius: 0 0 4px 4px;
  padding: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

      .search-container.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      .search-input-container {
        position: relative;
        display: flex;
        align-items: center;
      }

      .search-input {
        width: 100%;
        padding: 12px 40px 12px 15px;
        border: none;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 14px;
      }

      .search-input:focus {
        outline: none;
        box-shadow: 0 0 0 2px var(--primary);
      }

      .search-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
      }

      .search-submit {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: none;
        cursor: pointer;
        color: var(--text);
        font-size: 16px;
      }

      .search-submit:hover {
        color: var(--primary);
      }

      .search-suggestions {
        margin-top: 15px;
      }

      .search-suggestions h4 {
        color: var(--primary);
        font-family: "lexend", sans-serif;
        font-size: 14px;
        margin-bottom: 8px;
        opacity: 0.8;
      }

      .suggestion-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .suggestion-tag {
        background-color: rgba(255, 255, 255, 0.08);
        padding: 6px 12px;
        border-radius: 20px;
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s;
      }

      .suggestion-tag:hover {
        background-color: var(--primary);
        color: #000;
      }

      .recent-searches {
        margin-top: 15px;
      }

      .recent-searches h4 {
        color: var(--primary);
        font-family: "lexend", sans-serif;
        font-size: 14px;
        margin-bottom: 8px;
        opacity: 0.8;
        display: flex;
        justify-content: space-between;
      }

      .recent-searches h4 span {
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        font-size: 12px;
      }

      .recent-searches h4 span:hover {
        color: var(--text);
      }

      .recent-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

      .recent-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.2s;
      }

      .recent-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
      }

      .recent-item span {
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 13px;
      }

      .recent-item i {
        color: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        font-size: 12px;
      }

      .recent-item i:hover {
        color: var(--text);
      }

      /* Overlay for closing search when clicking elsewhere */
      .search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 990;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
      }

      .search-overlay.active {
        opacity: 1;
        visibility: visible;
      }

/* Mobile Responsive Style======== */
/* Mobile Navbar========= */
      /* Add these styles to your existing CSS */

      /* Mobile menu button */
      .mobile-menu-btn {
        display: none;
        cursor: pointer;
        padding: 5px;
      }

      .mobile-menu-btn i {
        font-size: 20px;
        color: var(--text);
      }

      /* Mobile menu container */
      .mobile-menu-container {
        position: fixed;
        top: 60px;
        left: -300px;
        width: 300px;
        height: calc(100vh - 60px);
        background-color: var(--box-background);
        z-index: 1001;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
      }

      .mobile-menu-container.active {
        left: 0;
      }

      .mobile-menu-container.active i{
        color: white;
      }

      .mobile-nav-links ul {
        list-style: none;
        padding: 0;
      }

      .mobile-nav-links ul li {
        margin-bottom: 15px;
      }

      .mobile-nav-links ul li a {
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 16px;
        text-decoration: none;
        display: block;
        padding: 8px 0;
      }

      .mobile-nav-item-parent {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .mobile-nav-item-parent i {
        transition: transform 0.3s;
      }

      .mobile-nav-item-parent.active i {
        transform: rotate(180deg);
      }

      .mobile-dropdown {
        padding-left: 15px;
        margin-top: 10px;
        display: none;
      }

      .mobile-dropdown.active {
        display: block;
      }

      .mobile-category-section {
        margin-bottom: 15px;
      }

      .mobile-category-section h3 {
        color: var(--primary);
        font-family: "lexend", sans-serif;
        font-size: 16px;
        margin-bottom: 8px;
      }

      .mobile-category-section ul {
        list-style: none;
        padding-left: 10px;
      }

      .mobile-category-section ul li {
        margin-bottom: 5px;
      }

      .mobile-category-section ul li a {
        color: var(--text);
        font-family: "lexend", sans-serif;
        font-size: 14px;
        text-decoration: none;
      }

      .mobile-menu-footer {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
      }

      .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .mobile-menu-btn-action {
        width: 100%;
        padding: 12px;
        border-radius: 4px;
        font-family: "lexend", sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
      }

      .mobile-login-btn {
        background-color: var(--primary);
        color: #000;
      }

      .mobile-register-btn {
        background-color: transparent;
        color: var(--text);
        border: 1px solid rgba(255, 255, 255, 0.2);
      }

      /* Responsive breakpoints */
      @media screen and (max-width: 992px) {
        .middle-nav {
          display: none;
        }

        .mobile-menu-btn {
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .search-container {
          width: 300px;
        }
      }

      @media screen and (max-width: 768px) {
        .navbar {
          padding: 0 15px;
        }

        .search-container {
          width: calc(100% - 30px);
          right: 15px;
        }

        .user-dropdown {
          width: 280px;
          right: 15px;
        }
      }

      @media screen and (max-width: 480px) {
        .logo img {
          height: 24px;
        }

        .right-nav div {
          width: 34px;
          height: 34px;
        }

        .right-nav i {
          font-size: 16px;
        }

        .mobile-menu-container {
          width: 250px;
        }
      }

/* HERO SECTION=============== */
.hero-carousel-section {
    width: 100%;
    position: relative;
    margin-top: 60px;
    margin-bottom: 40px;
    overflow: hidden;
  }
  
  .carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
  }
  
  .carousel-slider {
    display: flex;
    height: 100%;
    position: relative;
  }
  
  .carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
  }
  
  .carousel-slide.active {
    opacity: 1;
    z-index: 2;
  }
  
  .carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.4) 65%, rgba(0,0,0,0.3) 100%);
  }
  
  /* Bottom Fade Effect */
  .hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 6;
    background: linear-gradient(to bottom, rgba(18,18,18,0) 0%, rgba(18,18,18,0.9) 70%, rgba(18,18,18,1) 100%);
    pointer-events: none;
  }
  
  .carousel-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 80px;
  }
  
  .banner-content-wrapper {
    max-width: 600px;
    color: #fff;
  }
  
  .anime-tag {
    display: inline-block;
    background-color: #ff5c5c;
    color: white;
    padding: 6px 12px;
    font-family: 'Montserrat';
    font-size: 14px;
    /* font-weight: 700; */
    border-radius: 3px;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }
  
  .anime-title {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .anime-description {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 18px;
    margin-bottom: 28px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
  }
  
  .cta-buttons {
    display: flex;
    gap: 16px;
  }
  
  .cta-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .watch-btn {
    background-color: #ff5c5c;
    color: white;
  }
  
  .watch-btn:hover {
    background-color: #e74c3c;
    transform: translateY(-2px);
  }
  
  .add-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
  }
  
  .add-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  
  /* ==============Carousel Navigation======================= */
  .carousel-nav {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }
  
  .carousel-prev,
  .carousel-next {
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
  }
  
  .carousel-prev:hover,
  .carousel-next:hover {
    opacity: 1;
  }
  
  .carousel-dots {
    display: flex;
    gap: 6px;
    margin: 0 15px;
    height: 4px;
    align-items: center;
  }
  
  .dot {
    width: 30px;
    height: 4px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .dot.active {
    background-color: #f47521; /* Crunchyroll orange */
    height: 4px;
    transform: none;
  }

  /* Progress animation */
.dot.active::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background-color: rgba(255, 255, 255, 0.3);
  animation: progress 6s linear;
}

@keyframes progress {
  0% { width: 0; }
  100% { width: 100%; }
}
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .carousel-content {
      padding: 0 40px;
    }
    
    .carousel-nav {
      bottom: 30px;
    }

    .dot {
      width: 20px;
    }

    .anime-title {
      font-size: 32px;
    }
    
    .anime-description {
      font-size: 16px;
    }
    
    .cta-button {
      padding: 10px 18px;
      font-size: 14px;
    }
    
    .hero-bottom-fade {
      height: 80px;
    }
  }
  
  @media (max-width: 480px) {
    .carousel-content {
      padding: 0 20px;
    }
    
    .anime-title {
      font-size: 28px;
    }
    
    .anime-description {
      display: none;
    }
    
    .carousel-nav {
    bottom: 20px;
  }
  
  .dot {
    width: 15px;
  }
    
    .hero-bottom-fade {
      height: 60px;
    }
  }


/* Trending Section============== */
/* Trending Section============== */
.trending-section {
  padding: 3rem 0;
  background-color: var(--background);
  position: relative;
}

.trending-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.trending-header {
  font-size: 2rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
}

.trending-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

.trending-content {
  display: flex;
  align-items: center;
  position: relative;
}

.posters-container {
  width: 100%;
  overflow: hidden;
  margin: 0 10px;
}

.posters {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1rem;
}

.poster-item {
  min-width: 180px;
  flex: 0 0 180px;
  height: 270px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.poster-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.poster-item:hover img {
  filter: brightness(70%);
}

/* Rank Label Styling */
.rank-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.poster-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: white;
  padding: 1rem 0.5rem 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.poster-item:hover .poster-title {
  transform: translateY(0);
}

.trending-nav {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease;
}

.trending-nav:hover {
  background: var(--primary);
}

.trending-nav i {
  color: white;
  font-size: 1.5rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.5rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .poster-item {
    min-width: 140px;
    flex: 0 0 140px;
    height: 210px;
  }
  
  .trending-nav {
    width: 40px;
    height: 40px;
  }
  
  .trending-section{
    margin-top: 10px;
  }
  
  .trending-nav i {
    font-size: 1.2rem;
  }
  
  .rank-label {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .poster-item {
    min-width: 120px;
    flex: 0 0 120px;
    height: 180px;
  }

  .trending-section{
    padding-top: 0;
    padding-bottom: 0;
  }
  
  
  .trending-header {
    font-size: 1.5rem;
  }
  
  .rank-label {
    font-size: 0.7rem;
    padding: 2px 5px;
    top: 5px;
    left: 5px;
  }
}


/* COLUMNS SECTION========= */
.content-wrapper {
  background-color: #2d2b4497;
  margin: 0 auto;
  margin-top: 7rem;
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Columns Section Enhancement */
.columns-section {
  position: relative;
  margin-top: -60px;
  z-index: 10;
  padding-top: 20px;
}

.columns {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  /* flex-wrap: wrap; */
  gap: 20px;
}

.top-airing-container {
  max-width: 500px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.top-airing-header {
  color: var(--primary);
  font-size: 18px;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 20px;
  padding: 10px 0;
}

.anime-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.anime-item {
  display: flex;
  width: 100%;
  max-width: 270px;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #313040;
}

.anime-poster {
  width: 70px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.anime-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anime-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  min-width: 0; /* Prevents text overflow */
}

.anime-details a {
  text-decoration: none;
  color: var(--text);
  font-family: 'lexend';
  font-size: 14px;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.anime-details a:hover {
  color: var(--primary);
}

.anime-title {
  font-size: 18px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.anime-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  gap: 4px;
}

.dub-stat {
  background-color: #b9e7ff;
  color: #111;
}

.sub-stat {
  background-color: #b0e3af;
  color: #111;
}

.episode-stat {
  background-color: #4a4957;
  color: #fff;
}

.view-more {
  display: flex;
  align-items: center;
  color: #ffffff;
  margin-top: 10px;
  text-decoration: none;
  font-size: 13px;
  gap: 5px;
}

.view-more i {
  margin-top: 3px;
  font-size: 9px;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  .columns {
    flex-direction: column;
    align-items: center;
  }

  .top-airing-header {
    margin-top: 0.3rem;
    font-size: 16px;
  }
  
  .top-airing-container {
    max-width: 100%;
  }
  
  .anime-item {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .content-wrapper {
    padding: 0 10px;
  }
  
  .top-airing-header {
    margin-top: 2px;
    font-size: 16px;
  }
  
  .anime-poster {
    width: 60px;
    height: 80px;
  }
  
  .anime-title {
    font-size: 16px;
  }
  
  .stat {
    padding: 3px 5px;
    font-size: 9px;
  }
}