       
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #111;
  color: #eee;
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

#app {
  background-color: #111111;
  max-width: 95%;
  margin: 0 auto;
  padding: 0 20px;
}

.search-container {
    position: relative;
    display: inline-block;
}

/* Search box (hidden by default) */
.search-box {
    display: none;
    position: absolute;
    right: 10%;
    top: 0;
    margin-right: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

.search-box input {
    border: none;
    outline: none;
    padding: 5px 8px;
    width: 180px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #555;
}

/* Show the search box when active */
.search-container.active .search-box {
    display: flex;
    align-items: center;
    margin-top: -27px;
}

/* New CSS for the suggestions dropdown */

/* dyreview */
 .secondary {
            background-color: #f0f0f0;
            color: #333;
            border: 1px solid #ccc;
        }
        
        .star-rating-container {
            display: none;
            margin: 15px 0;
            text-align: center;
        }
        
        .star-rating {
            direction: rtl;
            display: inline-block;
        }
        
        .star-rating input[type="radio"] {
            display: none;
        }
        
        .star-rating label {
            color: #ccc;
            font-size: 30px;
            padding: 0 5px;
            cursor: pointer;
        }
        
        .star-rating input[type="radio"]:checked ~ label {
            color: #ffcc00;
        }
        
        .star-rating label:hover,
        .star-rating label:hover ~ label {
            color: #ffcc00;
        }
        
        .review-form {
            display: none;
            border-radius: 5px;
            
        }
        
        .review-form textarea {
          
            width: 100%;
            height: 55px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            resize: vertical;
        }
        
        .form-actions {
            text-align: center;
        }
        
        .form-actions button {
            padding: 8px 15px;
            margin-left: 10px;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }
        
        .skip-btn {
            background-color:gold;
            color: white;
        }
        
        .submit-btn {
            background-color: #3498db;
            color: white
        }
/* dyreview end */


/* browser box */
    /* Browser box styling */
    li {
            position: relative; /* Crucial for positioning the browser-box */
        }

        /* Styling for the main navigation links */
        .bua1, .bua2, .bua3 {
            display: flex;
            align-items: center;
           
            text-decoration: none;
            padding: 8px 12px;
            border-radius: 8px; /* Slightly more rounded corners */
            transition: all 0.3s ease;
            
  
            box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow */
        }

        /* Browser box styling (applies to all pop-up boxes) */
        .browser-box {
            display: none; /* Hidden by default */
            position: absolute;
            left: 0;
            top: calc(100% + 10px); /* Position below the link with a small gap */
            background-color: white;
            border: 1px solid #e2e8f0; /* Lighter border */
            border-radius: 8px; /* Consistent rounded corners */
            box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* More prominent shadow */
            padding: 15px; /* Increased padding */
            width: 250px; /* Slightly wider box */
            z-index: 1000;
            opacity: 0; /* Start invisible for animation */
            transform: translateY(-10px); /* Start slightly above for animation */
            transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
        }

        /* When the box is active (shown) */
        .browser-box.active {
            display: block; /* Make it visible */
            opacity: 1; /* Fully opaque */
            transform: translateY(0); /* Slide into place */
        }

        .browser-box-content {
            font-size: 11px;
            color: #666; /* Softer text color */
            line-height: 1.5; /* Improved readability */
        }

    /* Show box when active */
    .browser-box.active {
      display: block;
    }

/* browser box */

/* !!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!  change portion css !!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!*/
 .chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
  }
 /*     1111111111111111 1111111111111111111111  circle 11111111111111111 111111111111111111111 111111111111111111*/
  .row-container {
            display: flex;
            align-items: center;
            gap: 8px;
            
            padding: 10px 6px;
            border-radius: 12px;
            
        }

        .launch-text {
            font-size: 16px;
            font-weight: 600;
            color: #fef9f9;
            letter-spacing: 0.5px;
        }

        .circles-container {
            margin-left: 30px;
            display: flex;
            gap: 12px;
        }

        .circle {
            width: 27px;
            height: 27px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #c6c6c6;
            font-size: 14px;
            font-weight: 500;
            border: 1px solid #6d6d6d;
            transition: all 0.3s ease;
        }

        .circle.act {
            border-color: #3498db;
            background-color: #4b97ff;
            transform: scale(1.1);
        }

        .circle:hover {
            border-color: #3498db;
            color: #3498db;
            cursor: pointer;
        }
   /*  !!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!! !end circle !!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
  .chapter-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }
  
  .chapter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .chapter-icon {
    font-size: 24px;
    color: #4a6baf;
  }
  .file {
    padding-bottom: 4px;
  }
  
  .chapter-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
  }
  
  .chapter-date {
    font-size: 13px;
    color: #777;
  }
  
  .show-all-button {
  text-align: center;
  margin-top: 20px; /* optional spacing */
}

.show-all-button .btn {
  display: inline-block;
}
  
  .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .primary-outline {
    border: 2px solid #4a6baf;
    color: #4a6baf;
    background: transparent;
  }
  
  .primary-outline:hover {
    background: #4a6baf;
    color: white;
  }

  /*11111111111111111 11111111111111 1111111111111 other part change  111111111111111 11111111111111111 1111111111111111*/
   .recommendations {
    max-width: 1300px;
    margin: 0 auto;
     
   
  }
  
  .recommendations h2 {
    font-size: 24px;
    margin-bottom: 0px;
    color: #fff;
  }

  .novel-cards-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin: 15px 0;
  }

  .novel-cards-wrapper {
    overflow: hidden;
    width: 100%;
  }

  .novel-cards {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 10px 0;
  }

  .novel-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: calc((100% - 60px) / 3); /* 4 cards with gap for desktop */
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 0; /* Important for text truncation */
  }

  .novel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  .novel-img {
    height: 0;
    padding-bottom: 150%; /* Aspect ratio for image */
    overflow: hidden;
    position: relative;
  }

  .novel-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    padding: 15px 15px 1px 15px;
    transition: transform 0.3s ease;
  }

  .novel-card:hover .novel-img img {
    transform: scale(1.05);
  }

  .novel-card-info {
    padding: 20px;
  }

  .novel-card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
  }

  .novel-card-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #aaa;
  }

  .novel-card-rating i {
    color: gold;
  }

  .chapters-count {
    margin-left: auto;
  }

  .scroll-btn {
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.scroll-btn:hover {
    background: #555;
    transform: scale(1.1);
}

.scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 1024px) {
    .novel-card {
        width: calc((100% - 40px) / 3); /* 3 cards on tablet */
    }
}

@media (max-width: 768px) {
    .novel-card {
        width: calc((100% - 30px) / 3); /* 3 cards on smaller tablets */
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Mobile specific styles */
@media (max-width: 480px) {
    .novel-cards {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .novel-cards::-webkit-scrollbar {
        display: none;
    }
    
    /* Hide scroll buttons on mobile */
    .scroll-btn {
        display: none !important;
    }
    
    /* Allow native scrolling */
    .novel-cards {
        transform: none !important;
    }
}


  /* Updated mobile styles to show 4 cards */
  @media (max-width: 480px) {
    .novel-cards-container {
      flex-direction: row; /* Keep buttons inline */
    }
    
    .novel-card {
      width: calc((100% - 30px) / 1.5); /* Show partial cards to indicate scroll */
      /* min-width: calc(100% / 1.5); Ensure cards take up proper space */
      min-width: calc(100% / 3.4);
      scroll-snap-align: start;
    }
    
    .novel-cards {
      gap: 10px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      padding-bottom: 10px;
      -webkit-overflow-scrolling: touch;
    }
    
    .novel-card-info h3 {
      font-size: 0.9rem;
    }
    
    .scroll-btn {
      width: 30px;
      height: 30px;
      font-size: 14px;
    }
  }
  /* New CSS for search and dropdown */
  /* Dropdown container */
        .dropdown {
            position: relative;
            display: inline-block;
        }
        
         /* Dropdown container */
        .dropdown {
            position: relative;
            display: inline-block;
            margin-right: 10px;
        }
        
        /* Dropdown content (hidden by default) */
        .dropdown-content {
          padding: 2px;
          margin-left: -35px;
            display: none;
            position: absolute;
            background-color: #1a1a1a;
            min-width: 100px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            border-radius: 4px;
        }
        
        /* Links inside the dropdown */
        .dropdown-content a {
            /* color: black; */
            padding: 2px 2px;
            text-decoration: none;
            display: block;
            font-size: 13px;

        }
        
        
        
        /* Show the dropdown menu */
        .show {
            display: block;
        }
        
       
        .search-container {
            position: relative;
            display: inline-block;
        }
        
        /* Search box (hidden by default) */
       .search-box {
    display: none;
    position: absolute;
    right: 10%;
    top: 0;
    margin-right: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

.search-box input {
    border: none;
    outline: none;
    padding: 5px 8px;
    width: 180px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #555;
}

/* Show the search box when active */
.search-container.active .search-box {
    display: flex;
    align-items: center;
    margin-top: -27px;
}

/* Styling for the suggestions list */
#suggestions {
    position: absolute;
    top: 100%; /* Positions the dropdown right below the input box */
    left: 0;
    right: 0;
    z-index: 10;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    list-style: none; /* Removes bullet points */
    padding: 0;
    margin: 0;
    max-height: 200px; /* Adjust this value as needed to show approx. 5 items */
    overflow-y: auto; /* Adds a vertical scrollbar only when content overflows */
}

/* Styling for each individual book suggestion item */
#suggestions li {
    padding: 8px 15px; /* Adds horizontal padding for better spacing */
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa; /* Adds a subtle separator between items */
    transition: background-color 0.2s ease, color 0.2s ease; /* Smooth transition for hover effects */
}

/* Hover effect for list items */
#suggestions li:hover {
    background-color: #e9ecef; /* Changes the background color on hover */
}

/* Styling for the anchor tag (the book title) within the list item */
#suggestions li a {
    display: block; /* Makes the entire list item clickable */
    text-decoration: none; /* Removes the underline from the link */
    color: #333; /* Sets a dark grey color for the text */
}

/* Hover effect for the link */
#suggestions li a:hover {
    color: #007bff; /* Changes the link color to blue on hover */
}

/* Special styling for the "No matches found" message */
#suggestions .text-muted {
    color: #6c757d; /* A muted grey for non-clickable text */
    text-align: center; /* Centers the text */
    font-style: italic; /* Makes the text italic */
    padding: 15px; /* Adds extra padding to this specific item */
    cursor: default; /* Changes the cursor to default for this text */
} 
        /* Icon button styling */
        .icon-btn {
            display: inline-block;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        /* add hover in dropdown menu */
        .dropdown-content a {
         display: block;
         transition: background-color 0.3s ease, color 0.3s ease;
       }
       .dropdown-content a:hover,
       .dropdown-content a:focus,
       .dropdown-content a:active {
       background-color: #6da2ff; 
       }


  /* !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!! end css here !!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/


   /* review part css */
   .average-rating {
    text-align: center;
    min-width: 200px;
  }
.average-rating {
  padding: 0;
  margin: 0;
  line-height: 1;
}

.rating-number {
  font-size: 3rem;
  font-weight: 600;
  display: block;
  line-height: 1;
  margin: 0;
  padding: 0;
}

  .stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 7px;
  }

  .stars i {
     color: gold;
    cursor: pointer;
    transition: color 0.2s;
  }

 /* log in logout */

  nav ul {
    display: flex;
    gap: 25px;
  }

  nav li a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
    font-size: 0.9rem;
  }

  nav li a:hover {
    color: white;
  }

  .nav-right {
    display: flex;
    gap: 15px;
  }

  .icon-btn {
    color: #ccc;
    font-size: 1.1rem;
  }

  .icon-btn:hover {
    color: white;
  }

  /* New CSS for search and dropdown */
  .search-container {
    position: relative;
    display: flex;
    align-items: center;
  }

  .search-box {
    position: absolute;
    right: 0;
    top: 100%;
    width: 200px;
    height: 30px;
    background: white;
    border-radius: 4px;
    padding: 5px;
    display: none;
    z-index: 100;
  }

  .search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 5px;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 120px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 5px 0;
    display: none;
    z-index: 100;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-item {
    display: block;
    padding: 5px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 4px;
  }

  .dropdown-item:hover {
    background: #f5f5f5;
  }
 /* !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!change portion css end  !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!! !!!!!*/

/* Header Styles */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #222;
}

.brand a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b82f6;
}


/* Main Content Styles */
main {
  padding: 30px 0;
}
/* Novel Details Section */
.novel-details {
  display: flex;
  gap: 45px;
  margin-bottom: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.novel-cover {
  margin-top: 15px;
  flex: 0 0 295px;
  position: relative;
  min-width: 200px;
}

.novel-cover img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 2.4 / 3;
}

.novel-info {
  flex: 1;
  min-width: 0;
}

.novel-info h1 {
  font-size: 2rem;
  color: #4b97ff;
  margin-bottom: 7px;
}

.rating-views {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
  color: #ccc;
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating i {
  color: gold;
}

.views {
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-row {
  display: flex;
  margin-bottom: 7px;
  align-items: center;
}

.label {
  width: 120px;
  color: #c6c6c6;
}

.value {
  color: #eee;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: #222;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.show-more {
  color: #4b97ff;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 0px;
}

.description {
  margin-top: 10px;
  margin-bottom: -12px;
}

.description h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.description p {
  color: #eaeaea;
  font-size: 0.95rem;
  margin-bottom: 1px;
  line-height: 1.6;
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* Media Queries */
/* Small laptops and landscape tablets (1024px and below) */
@media (max-width: 1024px) {
  .novel-details {
    gap: 30px;
  }
  
  .novel-cover {
    flex: 0 0 300px;
  }
  
  .novel-info h1 {
    font-size: 1.8rem;
  }
  
  .rating-views {
    gap: 15px;
  }
}
.novel-cover {
  margin-top: 15px;
  flex: 0 0 365px;
  position: relative;
  min-width: 200px;
}

/* Tablets and phones (768px and below) */
@media (max-width: 768px) {
  .novel-cover {
  margin-top: 15px;
  flex: 0 0 365px;
  }
  .novel-details {
    gap: 25px;
  }
  
  .novel-cover {
    flex: 0 0 250px;
  }
  
  .novel-info h1 {
    font-size: 1.6rem;
  }
  
  .label {
    width: 100px;
    font-size: 0.9rem;
  }
  
  .value {
    font-size: 0.9rem;
  }
  
  .description h3 {
    font-size: 1.1rem;
  }
  
  .description p {
    font-size: 0.9rem;
  }
  
  .action-buttons {
    gap: 10px;
  }
}


.btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn.primary {
  background-color: #349d97;
  color: white;
}



.btn.secondary {
  border-radius: 11px;
  background-color: #4b97ff;
  color: white;
}



.btn.primary-outline {
  border: 1px solid #4b97ff;
  color: #4b97ff;
  background: transparent;
}

.btn.primary-outline:hover {
  background-color: rgba(75, 151, 255, 0.1);
}

/* Chapters Section */
.chapters-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  margin-top: 45px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
}

.chapter-count {
  font-size: 0.9rem;
  color: #999;
  background-color: #222;
  padding: 3px 10px;
  border-radius: 15px;
}
 


.chapter-card {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chapter-card:hover {
  background-color: #252525;
}

.chapter-icon {
  /* margin-bottom: 25px; */
  color: #4b97ff;
  font-size: 1.2rem;
}

.chapter-info h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.chapter-date {
  font-size: 0.8rem;
  color: #777;
}

.show-all-button {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.chapter-lock-info {
    display: flex; /* Use flexbox to align items horizontally */
    align-items: center; /* Vertically center the items */
    gap: 10px; /* Add some space between the lock and the coin info */
    margin-left: auto; /* Push this element to the right side of the flex container */
    padding-left: 15px; /* Add some padding on the left to separate it from the chapter-info */
    color: #888; /* A subtle color for the icons and text */
}

/* Style for the coin-info group (icon and count) */
.chapter-lock-info .coin-info {
    display: flex; /* Use flexbox to align the coin icon and count */
    align-items: center; /* Vertically center them */
    gap: 5px; /* Space between the coin icon and the number */
    font-weight: bold; /* Make the coin count stand out */
}

/* Style for the lock icon */
.chapter-lock-info .fa-lock {
    font-size: 1.2em; /* Make the lock icon slightly larger */
    color: #4b97ff; /* A distinct color for the lock icon, like red */
}

/* Style for the coin icon */
.chapter-lock-info .fa-coins {
    color: #349d97; /* A golden color for the coin icon */
}
/* Reviews Section */
.reviews-section {
  padding-bottom: 22px;
  margin-bottom: 20px;
  background-color: #1a1a1a;
  border-radius: 10px;

}

.reviews-section h2 {
  padding-top: 20px;
  font-size: 1.5rem;
  padding-left: 13%;
}
.star {
    padding: 12px 7px;
    width: 135px;
    margin-left: 30px;
}

.rating-summary {
  display: flex;
  gap: 50px;
  margin-bottom: 5px;
  padding-right: 9%;
  padding-left: 9%;
}


.review-count {
  display: block;
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.rating-bars {
  flex: 1;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rating-bar-row span {
  width: 60px;
  font-size: 0.9rem;
  color: #999;
}
.newest {
 background-color: #1a1a1a;
 border-radius: 10px;
}

.bar-container {
  flex: 1;
  height: 14px;
  background-color: #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background-color: #4b97ff;
}

.reviews-filter {
  /* display: flex; */
  /* text-align: center; */
  gap: 15px;
  margin-bottom: 10px;
  padding-left: 8.9rem;
}

.dropdown {
  position: relative;
}

.dropdown-btn {
  margin-top: 15px;
  background-color: #222;
  border: none;
  color: #ccc;
  padding: 10px 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  
  
}

.dropdown-btn i {
  font-size: 0.7rem;
}

.no-reviews {
  text-align: center;
  padding: 30px;
  color: #777;
  padding: 15px;
  
}

/* Recommendations Section */
.recommendations {
  margin-bottom: 50px;
}

.recommendations h2 {
    padding-left: 4.5rem;
    margin-top: 3rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.chapters-count {
  margin-left: auto;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid #222;
  color: #777;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: #999;
}  
/* Desktops and larger laptops (1280px and below) */
@media (max-width: 1280px) {
  main {
    padding: 25px 0;
}
  #app {
    max-width: 100%;
    padding: 0 15px;
  }

  .novel-details {
    gap: 35px;
  }

  .novel-cover {
    flex: 0 0 320px;
  }

  .chapters-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }

  .novel-card {
    width: 320px;
  }

  .novel-img {
    height: 420px;
  }

  .rating-summary {
    gap: 40px;
  }
}

/* Small laptops and landscape tablets (1024px and below) */
@media (max-width: 1024px) {
  main {
    padding: 20px 0;
}
  .section-header {
    margin-top: 25px;
  }
  .novel-details {
    gap: 30px;
  }
  .circles-container {
    display: flex;
    gap: 6px;
}
  
  /* .novel-cover {
    flex: 0 0 300px;
  } */

  .novel-info h1 {
    font-size: 1.8rem;
  }

  .chapters-grid {
    grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  }

  .novel-cards {
    gap: 40px;
  }

  .novel-card {
    width: 280px;
  }

  .novel-img {
    height: 380px;
  }

  .rating-summary {
    /* flex-direction: column; */
    gap: 20px;
  }

  .average-rating {
    text-align: left;
    display: flex;
    align-items: center;
    /* gap: 20px; */
    flex-direction: column;
  }

  .stars {
    justify-content: flex-start;
  }
  .star {
    padding: 12px 7px;
    /* width: 135px; */
    margin-left: 1px;
}

  .reviews-section h2,
  .recommendations h2 {
    padding-left: 7.4rem;
  }
  .novel-img img {
    padding: 5px 5px 5px 5px;
    width: 100%;
    height: 100%;
  }
  .novel-card-info {
    padding: 5px;
}
}

/* Tablets and phones (768px and below) */
@media (max-width: 768px) {
  main {
    padding: 15px 0;
}
  header {
    flex-wrap: wrap;
    gap: 15px;
  }

  nav ul {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 15px;
  }

  .novel-details {
    gap: 25px;
  }

  .novel-cover {
    flex: 0 0 360px;
  }

  .novel-info h1 {
    font-size: 1.6rem;
  }

  .chapters-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
  }

  .novel-cards-container {
    gap: 10px;
  }

  .novel-cards {
    gap: 30px;
  }

  .novel-card {
    width: 240px;
  }

  .novel-img {
    height: 320px;
  }

  .scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .reviews-section h2,
  .recommendations h2 {
    padding-left: 1rem;
    font-size: 1.3rem;
  }

  .reviews-filter {
    padding-left: 1rem;
  }

  .rating-summary {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Phones (480px and below) */
@media (max-width: 480px) {
  header {
    flex-wrap: wrap;
    gap: 5px;
  }

  .brand a {
    font-size: 10px;
  }


  .nav-right {
    gap: 10px;
  }

  .novel-details {
    gap: 20px;
  }

  .novel-cover {
    flex: 0 0 auto;
    width: 70%;
    margin: 0 auto;
  }

  .novel-info h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .rating-views {
    justify-content: center;
  }

 

  .btn {
    width: 67%;
    text-align: center;
    justify-content: center;
  }
  .rating-number {
    font-size: 2.5rem;
    font-weight: 400;
  }

  .chapters-grid {
    grid-template-columns: 1fr;
  }

  .novel-cards-container {
    margin: 20px 0;
  }

  .novel-cards {
    gap: 10px;
  }

  .novel-card {
    width: 220px;
  }

  .novel-img {
    height: auto;
  }

  .scroll-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .reviews-section h2,
  .recommendations h2 {
    padding-left: 4.9rem;
    margin-top: 2rem;
    font-size: 1.2rem;
  }

  .reviews-filter {
    padding-left: 0.5rem;
    gap: 10px;
  }

  .dropdown-btn {
    font-size: 8px;
    width: 100%;
    justify-content: space-between;
  }

  footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
   .rating-summary {
        padding-left: 5px;
        padding-right: 5px;
    }
    .reviews-section h2, .recommendations h2 {
      padding-left: 4.3rem;
        }
            .chapters-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .chapter-info h3 {
    font-size: 8px;
    font-weight: 400;
    margin-bottom: 1px;
}
.chapter-card {
    
    border-radius: 8px;
    padding: 3px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.chapter-date {
    font-size: 6px;
}
.chapter-icon {
    margin-bottom: 7px;
    font-size: 15px;
}
.fa-solid, .fas {
    font-weight: 600;
}
.section-header h2 {
    margin-top: 0px;
    gap: 8px;
    font-size: 16px;
}
.chapter-count {
    font-size: 14px;
    padding: 3px 10px;
    /* border-radius: 15px; */
}
}
  

/* Phones (480px and below) */
@media (max-width: 480px) {
  main {
    padding: 10px 0;
}
  .novel-details {
    /* flex-direction: column; */
    gap: 20px;
  }
  
  .novel-cover {
    height: 0px;
    flex: 0 0 auto;
    width: 60%;
    margin: 0 auto;
    aspect-ratio: 2.4 / 3;
    /* max-width: 250px; */
  }
  .novel-info {
    flex: 1;
    min-width: 0;
   margin-left: -65px;
}
  
  .novel-info h1 {
   margin-left: -26px;
   font-size: 12px;
    text-align: center;
    margin-bottom: 2px;
  }
  
  .rating-views {
    justify-content: center;
   margin: 6px 97px 5px 0px;
  }
  
  .info-row {
    flex-wrap: wrap;
  }
  .info-row {
    display: flex;
    margin-bottom: 1px;
    align-items: center;
}
  
  .label {
    width: 80px;
    font-size: 0.85rem;
  }
  
  .value {
    font-size: 0.85rem;
  }
  
  .tags {
    justify-content: center;
  }
  
  .description h3 {
    text-align: center;
  }
  
  .action-buttons {
    justify-content: center;
    /* flex-wrap: wrap; */
    margin-top: 1px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    font-size: 8px;
  }
  .novel-cover img {
   
        width: 75%;
        height: auto;
        border-radius: 10px;
        object-fit: cover;
        aspect-ratio: 2.2 / 3;
    }

.tag {
    background-color: #222;
    padding: 2px 2px;
    border-radius: 15px;
    font-size: 5px;
}
.rating {
    
    gap: 5px;
    font-size: 8px;
}
.views {
    /* display: flex
;
    align-items: center; */
    gap: 5px;
    font-size: 8px;
}
    .label {
        width: 48px;
        font-size: 8px;
    }
    .value {
        font-size: 8px;
    }
    .show-more {
    font-size: 6px;
    }
        .description h3 {
        font-size: 10px;
        margin-bottom: 1px;
    }
        .description p {
        font-size: 7px;
    }
    .description  {
        margin-top: 1px;
        height: 96px;

    }
    .btn.secondary {
            width: 85px;
        height: 18px;
        font-size: 6px;
    }
    .star{
      font-size: 6px;
    }
    .btn.primary {
            width: 85px;
        height: 18px;
        font-size: 6px;
    }
    .no-reviews {
      font-size: 8px;
    }
    .bua1{
      font-size: 7px;
      
    }
    .bua2{
      font-size: 7px;
    }
    .bua3{
      font-size: 7px;
    }
    .nav ul {
    gap: 5px;
  }
  .icon-btn {
    font-size: 10px;
    
}
.reviews-section h2, .recommendations h2 {
        font-size: 14px;
        padding-left: 1.8rem;
    }
        .stars {
        font-size: 10px;
        justify-content: flex-start;
    }
    .review-count {
    font-size: 9px;
    }
    .rating-bar-row span {
    font-size: 8px;
    width: 30px;
    }
    .average-rating{
  
    min-width: 99px;
 }

.btn.primary-outline {
    font-size: 6px;
    width: 110px;
    padding: 8px;
}
.bar-container {
    /* flex: 1; */
    height: 8px;
    margin-right: 10px;
}
.launch-text {
    font-size: 8px;
    font-weight: 400;
}
.circle {
        width: 10px;
        height: 10px;
        justify-content: center;
        font-size: 7px;
}
.circles-container {
    display: flex;
    gap: 3px;
}
 

.chapter-lock-info {
    padding-left: 5px;
    font-size: 7px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    color: #888;
    flex-direction: column;
}
.star-rating-container {
    font-size: 8px;
    margin: 4px 0;
}
.star-rating label {
    font-size: 12px;
    padding: 0px 2px;
}
.review-form {
    height: auto;
    width: 129px;
    display: none;
    margin-top: 10px;
    padding: 0px;
    border-radius: 5px;
    
}
.form-actions button {
    padding: 3px 10px;
    margin-left: 5px;
}


}

.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 10px 0;
    max-height: 100px; 
    overflow-y: auto;
}

.dropdown.show .dropdown-content {
    display: block;
}

.bookmark-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
}

.bookmark-item:hover {
    background: #f5f5f5;
}

.bookmark-item img {
    width: 30px;
    height: 40px;
    object-fit: cover;
    margin-right: 12px;
}

.bookmark-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.no-bookmarks {
    padding: 10px 16px;
    color: #666;
    font-size: 14px;
}
.review-dropdown-menu.show {
    width: 65rem;
}
@media (max-width: 1020px) {
.review-dropdown-menu.expanded {
        width: 39rem;
    max-height: 200px;
}
}

@media (max-width: 480px) {
.dropdown-content {
    right: 0;
    background: white;
    min-width: 110px;
    z-index: 1000;
    padding: 6px 0;
}
.active .search-box {
    height: 25px;
    width: 118px;
}
#suggestions li a {
    font-size: 10px;
    
}
#suggestions li {
    padding: 2px 4px;
}
}

@media (max-width: 768px) {
.review-dropdown-menu.expanded {
        width: 25rem;
    max-height: 200px;

}
}