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

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

.cover-image {
  width: 200px;
  height: 280px;
  object-fit: cover;
  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;
  justify-content: space-between;
}

.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-bottom: 16px;
}

.manga-tags.mobile {
  display: none;
}



.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;
}

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

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

/* Description chỉ hiển thị 2 dòng khi chưa mở rộng */
.manga-description p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.2em;
  transition: max-height 0.3s;
}

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

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

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

/* 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;
  margin-bottom: 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;
  border-bottom: 1px solid #e9ecef;
}

.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: 20px 0;
  margin: 0 24px;
  border-bottom: 1px solid #e9ecef;
}

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

.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;
}

.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;
}

.send-button:hover {
  background: #0056b3;
}

.comments-list {
  padding: 0 24px;
}

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

.comment-item:last-child {
  border-bottom: none;
}

.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;
}



/* Responsive Design */
@media (max-width: 768px) {
  .comment-text{
  width: 200px;
  white-space: normal;
  overflow-wrap: break-word;
}
  .manga-tags {
    display: none;
  }

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

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .show-more {
    font-size: 10px;
  }
  .meta-sep {
    display: none;
  }.bookmark-infor {
  height: 32px;
  width: 32px;
  }
  .bookmark-infor  img{
    height: 12px;
  } 
  .comment-input-section {
    display: none !important;
  }


  /* Ẩ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: 10px;
    top: 12px;
  }
  .cover-image {
    width: 31vw;
    height: 45vw;
  }
  .manga-title {
    font-size: 16px;
  }
  .meta-label, .meta-value {
  font-size: 12px;
}
.read-btn {
  font-size: 12px;
  height: 32px;
  width: 108px;
  font-weight: 500;
}
.chapter-info h3 {
  font-size: 12px;
}

.chapter-date {
  font-size: 10px;
}
.chapter-thumb {
    width: 59px;
    height: 51px;
}
.sort-dropdown {
  display: none;
}
.manga-info {
  gap: 15px;
}
.comments-title {
  font-size: 16px;
}
.section-header h2 {
  font-size: 16px
}
.username , .comment-text {
  font-size: 12px; 
}

.manga-description p {
  font-size: 12px;
}
.tag {
  font-size: 12px;
}
.action-button {
  font-size: 12px; 
}
.load-more-button {
  font-size: 12px; 
}
.fa-bookmark {
  font-size: 12px; 
}


}