/* Manga Info Section — NAVY style */
.detail-page.content-section {
  padding: 28px 0;
}

.manga-info {
  display: flex;
  gap: 28px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 0;
  box-shadow: none;
}
.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: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

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

.manga-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 12px;
}

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

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

.meta-label {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  margin-right: 4px;
}

.meta-value {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  margin-right: 16px;
  text-decoration: none;
}

.meta-value:hover {
  color: var(--navy-blue, #2563EB);
}

.manga-tags {
  margin: 14px 0 16px;
}

.manga-tags.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manga-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 0;
}

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

.read-btn {
  background: var(--navy-blue, #2563EB);
  color: white;
  border: none;
  height: 44px;
  min-width: 140px;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.read-btn a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.read-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.bookmark-infor {
  background: #fff;
  border: 1px solid #e5e7eb;
  height: 44px;
  width: 44px;
  border-radius: 10px;
  cursor: pointer;
  color: #374151;
  transition: all 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.show-all {
  font-size: 13px;
  color: var(--navy-blue, #2563EB);
  font-weight: 500;
}
.show-all i {
  margin-left: 6px;
}

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

.bookmark-infor:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--navy-blue, #2563EB);
}
.bookmark-infor img {
  height: 24px;
}

.manga-description {
  color: #6b7280;
  line-height: 1.75;
  font-size: 14px;
}



.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: var(--navy-blue, #2563EB);
  cursor: pointer;
  margin-top: 1rem;
  font-size: 13px;
  font-weight: 500;
}

/* Chapter List */
.chapter-list {
  margin-top: 0;
}

.sort-dropdown {
  position: relative;
  display: inline-block;
}

.chapters {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid #eef0f3;
  padding: 8px 0;
  overflow: hidden;
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  padding: 14px 20px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  min-height: auto;
}

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

.chapter-item:hover {
  background: #eff6ff;
  transform: none;
  box-shadow: none;
}

.chapter-item:hover .chapter-info h3 {
  color: var(--navy-blue, #2563EB);
}

.chapter-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
  transition: color 0.2s;
}

.chapter-date {
  color: #9ca3af;
  font-size: 12px;
}

#load-more-chapters {
  display: block;
  width: calc(100% - 32px);
  margin: 12px 16px 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: var(--navy-blue, #2563EB);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
}

#load-more-chapters:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.btn-sort {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s;
  font-family: var(--font-main);
}

.btn-sort:hover {
  border-color: #bfdbfe;
  color: var(--navy-blue, #2563EB);
  background: #eff6ff;
}

.dropdown-menu-block {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-top: 5px;
  min-width: 120px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
}

.dropdown-item:hover {
  background-color: #eff6ff;
  color: #2563EB;
}

/* Comments */
.comments-header {
  padding: 0;
  margin-bottom: 20px;
}

.comments-header h2 {
  margin: 0;
}

.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: #2563EB;
}

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

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

.comment-input-section {
  padding-top: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #eef0f3;
  margin-bottom: 8px;
}

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

.comment-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
  background: #fafafa;
  min-height: 100px;
  resize: vertical;
  font-family: var(--font-main);
  transition: border-color 0.2s, background 0.2s;
}

.comment-input:focus {
  border-color: #2563EB;
  background: white;
}

.send-button {
  padding: 10px 24px;
  color: #2563EB;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  float: right;
  background: #eff6ff;
  transition: all 0.2s;
  font-family: var(--font-main);
}

.send-button:hover {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}


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

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

.load-more-button {
  background: none;
  border: none;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 0;
  text-transform: lowercase;
}

.load-more-button:hover {
  color: var(--navy-blue, #2563EB);
}

.detail-related .comic-grid {
  grid-template-columns: repeat(6, 1fr);
}

.chapter-item {
  min-height: auto;
}
.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: #2563EB;
  font-weight: 500;
}

.action-button:hover {
  color: #2563EB;
}

.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: #2563EB;
  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: 13px;
  font-weight: 600;
}
.rut-gon{
  display: none;
}
.mobile-show{
  display: none;
}
.desktop-show{
  display: block;
}
.chapter-item {
  min-height: 56px;
}

.detail-related .comic-grid {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
  .detail-related .comic-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .detail-related .comic-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 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: 20px 0 !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: #2563EB;
    display: block;
    margin-top: 20px;
  }
  .comment-input{
    width: 287px;
    height: 98px;
  }
  .manga-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .genre-tag {
    height: auto;
    padding: 7px 14px;
  }
  .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;
    padding: 16px;
    border-radius: 12px;
  }
.comments-title {
  font-size: 18px;
}
.section-header h2 {
  font-size: 15px;
}
.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;
}