/* Manga Info Section */
.manga-info {
  display: flex;
  gap: 2rem;
  background: white;
  margin-bottom: 10px;
}
.desktop_hidden_real{
  display: none !important;
}

.manga-cover {
  position: relative;
  flex-shrink: 0;
}

.cover-image {
  width: 200px;
  height: 280px;
  object-fit: cover;
  
  object-position: top center;
  border-radius: 10px;
}

.hot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4757;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.manga-details {
  display: flex;
  flex-direction: column;
}

.manga-title {
  font-size: 2.5rem;
  color: #333;
}

.manga-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.meta-label {
  color: #99A1B3;
  font-size: 17px;
  font-weight: 400;
  margin-right: 4px;
}

.meta-value {
  color: #23262F;
  font-size: 17px;
  font-weight: 500;
  margin-right: 16px;
}

.meta-sep {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: #e6e8ec;
  margin: 0 16px 0 0;
  vertical-align: middle;
}



.manga-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 ;
}



.tag {
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 12px;
  color: #000000;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.manga-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 6px;
}

.read-btn {
  background: #007bff;
  color: white;
  border: none;
  height: 49px;
  width: 149px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.read-btn:hover {
  background: #0056b3;
}

.bookmark-infor {
  background: none;
  border: 2px solid #ddd;
  height: 49px;
  width: 49px;
  border-radius: 10px;
  cursor: pointer;
  color: #000000;
  transition: all 0.3s;
  line-height: 1;
}
.show-all {
  font-size: 14px;
  color:#007AFF;
}
.show-all i {
  margin-left: 6px;
}

.rut-gon i{
  margin-left: 6px;
}

.bookmark-infor:hover {
  background: #f8f9fa;
  color: #007bff;
}
.bookmark-infor img {
  height: 24px;
}

.manga-description {
  color: #666;
  line-height: 1.8;
}



.manga-description.expanded p {
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
  margin-bottom: 10px;
}
.manga-details.block  {
  display: block;
}


.show-more-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}
.fa-bookmark {
  font-size: 16px;
}

.show-more {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  margin-top: 1rem;
}

/* Chapter List */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
}

.section-header h2 {
  font-size: 1.5rem;
  color: #333;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7l2.5 2 2.5-2' stroke='%2399A1B3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center/18px 18px;
  border: 1.5px solid #f3f3f3;
  border-radius: 12px;
  padding: 10px 38px 10px 16px;
  font-size: 16px;
  color: #23262f;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  min-width: 120px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s;
  margin-left: 12px;
}

.sort-select:focus {
  border-color: #1976d2;
}

.sort-select option {
  font-size: 16px;
}

.chapters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 10px;
  background-color: #f9fafb;
  padding: 16px;
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 10px;
}

.chapter-item:hover {
  background: #ffffff;
  border-color: #007bff;
}

.chapter-thumb {
  width: 100px;
  height: 85px;
  object-fit: cover;
  border-radius: 10px;
}

.chapter-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.chapter-date {
  color: #9EA2AE;
  font-size: 0.9rem;
}

/* comment */


.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.comments-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.sort-dropdown {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #f3f3f3;
  border-radius: 10px;
  padding: 13px 20px 13px 16px;
  font-size: 16px;
  color: #23262f;
  font-weight: 500;
  cursor: pointer;
  min-width: 120px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s;
  outline: none;
  position: relative;
}

.sort-btn:focus,
.sort-btn:hover {
  border-color: #1976d2;
}

.sort-arrows {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.sort-arrows svg {
  display: block;
  width: 16px;
  height: 16px;
}

.comment-input-section {
  padding-top:20px;
  padding-bottom:79px;
  border-bottom: 1px solid #e9ecef;
}

.comment-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.avatar.blue {
  background: #007bff;
}

.avatar.green {
  background: #28a745;
}

.avatar.orange {
  background: #fd7e14;
}

.comment-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  background: #f8f9fa;
  height: 130px;
}

.comment-input:focus {
  border-color: #007bff;
  background: white;
}

.send-button {
  padding: 13px 30px;
  color: #9EA2AE;
  border: none;
  border: #E5E7EA 2px solid;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  float: right;
  margin-top: 20px;
}


.comment-item {
  padding: 24px 0;
  border-bottom: 1px solid #f3f3f3;
  margin-bottom: 0;
  background: transparent;
}

.comment-item:last-child {
  border-bottom: none;
}
.replies-container{
  margin-left: 40px;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  padding-left: 15px;
  margin-top: 10px;
}

.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}


.avatar-illustration {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
}

.avatar-illustration img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}

.avatar-status {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: #38c172;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}

.comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.username {
  font-weight: 600;
  font-size: 16px;
  color: #222;
}

.user-badge {
  background: #fff6e0;
  color: #ffb300;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  width: 67px;
  height: 24px;
  border: 2px solid #ffe0a3;
  margin-left: 0;
  align-items: center;
    justify-content: center;
}

.stars {
  margin-bottom: 0;
  margin-top: 0;
}

.star {
  color: #ffb300;
  font-size: 15px;
  font-weight: 600;
  margin-right: 8px;
}

.comment-text {
  font-size: 15px;
  color: #222;
  margin: 6px 0 10px 0;
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.action-button {
  background: none; 
  border: none;
  color: #6D717F;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color 0.2s;
}

.action-button.reply {
  color: #1976d2;
  font-weight: 500;
}

.action-button:hover {
  color: #1976d2;
}

.comment-time {
  position: absolute;
  right: 0;
  top: 0;
  color: #bdbdbd;
  font-size: 13px;
  font-weight: 400;
}

.load-more {
  text-align: center;
}

.load-more-button {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 10px;
}

.load-more-button:hover {
  background: #f8f9fa;
}



/* Related Manga */
.related-manga {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.related-manga h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.manga-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.manga-card:hover {
  transform: translateY(-5px);
}

.manga-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.manga-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.chapter-count {
  color: #666;
  font-size: 0.8rem;
}
.btn-sort{
  font-size: 15px;
  font-weight: 600;
}
.rut-gon{
  display: none;
}
.mobile-show{
  display: none;
}
.desktop-show{
  display: block;
}
.chapter-item {
  height: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .desktop_hidden_real{
    display: block !important;
  }
  .manga-details {
  display: none;
}
  .chapter-item {
  height: 67px;
}
  .desktop-show{
    display: none;
  }
  .comment-time-title{
    color: #bdbdbd;
    font-size: 14px;
    font-weight: 400;
  }
  .comments-list{
    padding: 0px;
  }
  .comment-item{
    border-bottom: 0px;
  }
  .manga-cover{
    margin: 0 auto;
    width: 100%;
  }
  .mobile-show{
    display: block;
  }
  .send-button-mobile{
    width: 61px;
    height: 32px;
    border-radius: 10px;
    padding:6px 12px 8px 12px;
    font-size: 12px;
    margin-top: 10px;
    border: #E5E7EA 2px solid;
    cursor: pointer;
    float: right;
  }
  .content-section{
    padding: 0px !important;
  }
  .chapter-info h3{
    margin-bottom: 0px;
  }
  .chapter-info{
    line-height: 1.5;
    margin-bottom: 13px;
  }
  .comment-input-section{
    padding-bottom: 27px;
    border-bottom: 0px;
    padding: 0px;
    margin: 0;
    margin-bottom: 26px;
    margin-top: 15px;
  }
  .comments-header{
    border-bottom: 0px;
    padding: 0px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .rut-gon{
    font-size: 14px;
    color: #007AFF;
    display: block;
    margin-top: 20px;
  }
  .comment-input{
    width: 287px;
    height: 98px;
  }
  .manga-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .tag{
    height: 32px;
    padding: 0 20px;
    align-content: center;
  }
  .gioi-thieu-span{
    font-size: 14px;
    font-weight: 600;
  }

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .show-more {
    font-size: 14px;
  }
  .meta-sep {
    display: none;
  }
  .bookmark-infor {
    height: 40px;
    width: 40px;
    padding: 8px;
  }
  .bookmark-infor  img{
    height: 15px;
  } 
  


  /* Ẩn nút tải thêm khi đã hiển thị hết */
  .load-more.hide {
    display: none !important;
  }

  .stars {
    display: none;
  }

  .comment-content {
    margin-top: 2.5vw;
  }

  .comment-time {
    font-size: 14px;
    top: 12px;
  }
  .cover-image {
    width: 100%;
    height: auto;
    mask: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.3) 10%, black 20%);
  }
  .manga-title {
    font-size: 22px;
    text-align: center;
    font-weight: 600;
  }
  .meta-label, .meta-value {
  font-size: 14px;
}
.read-btn {
  font-size: 16px;
  height: 40px;
  width: 170px;
  font-weight: 600;
}
.chapter-info h3 {
  font-size: 14px;
  font-weight: 600;
}
.other-name-mobile{
  margin-bottom: 10px;
}

.chapter-date {
  font-size: 12px;
}
.chapter-thumb {
    width: 59px;
    height: 51px;
}
.btn-sort{
  font-size: 14px;
  font-weight: 600;
}
.manga-info {
  gap: 15px;
  flex-direction: column;
}
.comments-title {
  font-size: 18px;
}
.section-header h2 {
  font-size: 18px
}
.username , .comment-text {
  font-size: 14px; 
}

.manga-description p {
  font-size: 14px;
  overflow: auto;
  max-height: max-content;
  -webkit-line-clamp: 0;
  -webkit-box-orient: inherit;
}

.tag {
  font-size: 12px;
}
.action-button {
  font-size: 12px; 
}
.load-more-button {
  font-size: 12px; 
}
.fa-bookmark {
  font-size: 12px; 
}
.manga-actions.mobiledt {
  display: flex !important;
  justify-content: center;
}

}

.manga-description-test {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  max-height: 5.5rem;
  font-size: 16px;
  mask-image: linear-gradient(
    to bottom, 
    white 0%,    /* Hiện rõ từ đầu */
    white 75%,   /* Hiện rõ đến 75% chiều cao */
    transparent 100% /* Mờ dần từ 75% đến 100% */
  );
}


.manga-description-test.expanded{
 max-height: none;
  mask-image:none;
}