.flex-1 {
  flex: 1;
}
.flex-2 {
  flex: 2;
}
.flex-7 {
  flex: 7;
}
.flex-8 {
  flex: 8;
}
.fs-7 {
  font-size: .9rem !important;
}
.fs-14 {
  font-size: 14px;
}
.fs-13 {
  font-size: 13px;
}
.fs-12 {
  font-size: 12px;
}
.fs-11 {
  font-size: 11px;
}
.pointer {
  cursor: pointer;
}
.text-orange {
  color: #f36621;
}
.bg-orange {
  background: #f36621;
}
.text-color-second {
  color: #0b2a4a;
}
.bg-second {
  background-color: #0b2a4a;
}
.line-height-35 {
  line-height: 35px;
}
body {
  font-family: Tahoma, sans-serif, Helvetica, Arial;;
  font-size: 15px;
  background-color: rgb(235, 235, 235);
}
a {
  color: #495057;
  text-decoration: none;
  border: none;
  outline: 0;
  cursor: pointer;
  transition: all 300ms ease-in-out;
}
@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1030px;
  }
}
.header-quicklink > * {
  margin-left: 12px;
}
.header-quicklink .icon-text-header {
  padding: 0;
  text-align: center;
  position: relative;
  min-height: 48px;
  min-width: fit-content;
}
.header-quicklink .icon-text-header:after {
  content: attr(data-text);
  font-size: 11px;
  font-weight: var(--pr-font-weight-heading);
  display: block;
  margin: 6px 0 0 0;
}
.list-manga {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.list-manga .item-manga figure img {
  width: 100%;
  max-height: 235px;
  object-fit: cover;
}
.list-manga .item-manga figure .info {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  color: white;
  padding: 5px 5px;
  font-size: 12px;
}
.list-manga .item-manga .title {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  /* flex để căn giữa */
  align-items: center;
}
.list-manga .item-manga .title span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 992px) {
  .list-manga {
    grid-template-columns: repeat(4, 1fr);
    /* 4 cột */
  }
}
@media (max-width: 576px) {
  .list-manga {
    grid-template-columns: repeat(2, 1fr);
    /* 2 cột */
  }
}
@media (min-width: 768px) {
  .w-sm-auto {
    width: auto;
  }
}
.nav-pills .nav-link {
  border-radius: 20px;
  padding: 6px 25px;
  background: #f5f5f5;
  color: #495057;
}
.nav-pills .nav-link.active {
  background: #0b2a4a;
  color: white;
}
.owl-carousel .owl-nav {
  position: absolute;
  top: 35%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  /* để không chặn click nội dung bên trong */
}
.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
  pointer-events: auto;
  /* bật lại click cho nút */
  background: rgba(255, 255, 255, 0.6);
  color: #fff;
  border: none;
  padding: 0px 15px !important;
  font-size: 40px !important;
}
.owl-carousel .owl-nav .owl-prev {
  left: -20px;
}
.owl-carousel .owl-nav .owl-next {
  right: -20px;
}
.img-cover {
  object-fit: cover;
  object-position: top;
}
.top-1 {
  color: darkgreen;
}
.top-2 {
  color: blue;
}
.top-3 {
  color: coral;
}
.pagination .page-item.active .page-link {
  background: #f36621 !important;
  border-color: #f36621 !important;
}
.pagination .page-item .page-link {
  padding: 0;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 39px;
  font-size: 14px;
  color: #495057;
}
.pagination .page-item .page-link:focus {
  box-shadow: none !important;
}
.breadcrumb_custom {
  list-style: none;
  padding-bottom: 10px;
  padding-top: 10px;
}
.breadcrumb_custom .breadcrumb-item {
  display: inline;
  line-height: 23px;
}
.breadcrumb_custom .breadcrumb-item + .breadcrumb-item::before {
  padding: 0 5px;
  float: inherit !important;
}
.btn-link {
  font-size: 12px;
  padding: 3px 5px;
  border-radius: 20px;
}
.read {
  overflow: hidden;
  font-size: 14px !important;
  transition: all 0.3s;
  margin-bottom: 10px;
}
.read a {
  font-weight: 700;
}
.read img {
  display: block;
  margin: 0 auto;
  max-width: 90%;
}
.read.read-less {
  height: 150px!important;
  position: relative;
}
.read.read-less::after {
  opacity: 1;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 70%;
  width: 100%;
  z-index: 1;
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(var(--bs-white)));
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bs-white));
  pointer-events: none;
  transition: opacity 300ms ease-in-out;
}
.readMore {
  display: block;
  width: 100%;
  background: white;
  text-align: center;
  cursor: pointer;
}
.page-view .detail-wrap {
  align-items: flex-start;
}
.page-view .detail-wrap .detail-image {
  flex: 0 0 200px;
}
.page-view .detail-wrap .detail-image img {
  width: 100%;
  height: auto;
  /* không bị méo ảnh */
  display: block;
}
.page-view .detail-wrap .detail-info {
  flex: 1;
}
.page-view .chapts .card {
  max-height: 500px;
  overflow: auto;
}
.dropdown-menu-user {
  border: none;
  border-radius: 0;
  padding: 10px;
  box-shadow: 0px 0px 5px 0px #efefef;
}
.login-box {
  margin: 2% auto;
}
.login-box .login-form .login-title {
  text-align: center;
  position: relative;
  margin-bottom: 48px;
  z-index: 1;
  display: flex;
  align-items: center;
}
.login-box .login-form .login-title::before,
.login-box .login-form .login-title:after {
  content: "";
  height: 1px;
  flex: 1 1;
  left: 0;
  background-color: #E1E1F0;
  margin: 0;
  padding: 0;
}
.login-box .login-form .form-check-input {
  width: 20px;
  height: 20px;
}
.login-box .login-form .form-check-label {
  line-height: 30px;
}
.login-box .text-header {
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .login-box {
    min-width: 450px;
  }
}
@media (max-width: 768px) {
  .login-box {
    min-width: 325px;
  }
}
.login-page {
  height: 70vh;
  background: linear-gradient(to bottom, #ffffff, #ffffff);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-page .haru {
  position: absolute;
  bottom: 0;
}
.login-page .haru .haru-divider {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  z-index: 9;
}
.login-page .haru .haru-divider .haru-divider-content {
  height: 0vh;
  min-height: 95px;
}
.login-page .haru .haru-divider .haru-divider-content .haru-waves {
  width: 100%;
  height: 15vh;
  margin-bottom: -9px;
  min-height: 95px;
  max-height: 150px;
}
.login-page .haru .haru-divider .haru-divider-content .haru-waves .haru-waves-parallax > use:nth-child(1) {
  -webkit-animation-delay: -2s;
  animation-delay: -2s;
  -webkit-animation-duration: 7s;
  animation-duration: 7s;
}
.login-page .haru .haru-divider .haru-divider-content .haru-waves .haru-waves-parallax > use:nth-child(2) {
  -webkit-animation-delay: -3s;
  animation-delay: -3s;
  -webkit-animation-duration: 10s;
  animation-duration: 10s;
}
.login-page .haru .haru-divider .haru-divider-content .haru-waves .haru-waves-parallax > use {
  -webkit-animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.login-page .haru .your-art-content {
  padding: 1rem 0;
  position: relative;
  height: 60px;
  margin: 0;
}
@-webkit-keyframes move-forever {
  0% {
    -webkit-transform: translate3d(-90px, 0, 0);
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(85px, 0, 0);
    transform: translate3d(85px, 0, 0);
  }
}
@keyframes move-forever {
  0% {
    -webkit-transform: translate3d(-90px, 0, 0);
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(85px, 0, 0);
    transform: translate3d(85px, 0, 0);
  }
}
@-webkit-keyframes sonar {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    100% {
        -webkit-transform: scale(3);
        transform: scale(3);
        opacity: 0
    }
}

@keyframes sonar {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    100% {
        -webkit-transform: scale(3);
        transform: scale(3);
        opacity: 0
    }
}
.dot {
    width: 9px;
    height: 9px;
    background-color: #f33;
    border-radius: 100%;
    display: inline-block;
}

.dot .ping {
    border: 1px solid #f33;
    width: 9px;
    height: 9px;
    opacity: 1;
    background-color: rgba(238, 46, 36, 0.2);
    border-radius: 100%;
    -webkit-animation-duration: 1.25s;
    animation-durastion: 1.25s;
    -webkit-animation-name: sonar;
    animation-name: sonar;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    display: block;
    margin: -1px 0 0 -1px;
}

.ranking-block {
    background: #fff;
    max-width: 340px;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

/* ── Tabs ── */
.ranking-block .nav-tabs {
    border-bottom: none;
    gap: 0;
}

.ranking-block .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #888;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 0;
    background: #ecf0f1;
    transition: color .2s;
}

.ranking-block .nav-tabs .nav-link:hover {
    color: #6a0dad;
}

.ranking-block .nav-tabs .nav-link.active {
    color: #6a0dad;
    border-top: 2px solid #6a0dad;
    background: none;
}

/* ── Rank items ── */
.rank-list {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

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

.rank-item:hover .rank-title {
    color: #6a0dad;
}

/* Number */
.rank-num {
    font-size: 18px;
    font-weight: 900;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}
.rank-num.n1 { color: #e94560; }
.rank-num.n2 { color: #f5a623; }
.rank-num.n3 { color: #888; }
.rank-num.nx { color: #ccc; font-size: 15px; }

/* Thumbnail */
.rank-thumb {
    width: 46px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

/* placeholder màu khi chưa có ảnh */
.rank-thumb.ph { background: linear-gradient(160deg, #7b2ff7, #e94560); }
.rank-thumb.ph2 { background: linear-gradient(160deg, #1565c0, #0d47a1); }
.rank-thumb.ph3 { background: linear-gradient(160deg, #c2185b, #880e4f); }
.rank-thumb.ph4 { background: linear-gradient(160deg, #00695c, #1565c0); }
.rank-thumb.ph5 { background: linear-gradient(160deg, #e65100, #bf360c); }
.rank-thumb.ph6 { background: linear-gradient(160deg, #212121, #424242); }
.rank-thumb.ph7 { background: linear-gradient(160deg, #880e4f, #ad1457); }

/* Info */
.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}

.rank-chap {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
}

.rank-views {
    font-size: 11px;
    color: #aaa;
    flex-shrink: 0;
    white-space: nowrap;
}
.filter .btn-default{
    background: white;
    border: 1px solid #ddd;
    min-width: 90px;
}
.filter .btn-default:hover, .filter .btn-default.active{
    background: #ff9334;
    color: white;
}
.list-cat-search{
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 0;
}