:root {
  --black-color: #181818;
  --black-color-2: #000;
  --text-grey: #606060;
  --bg-grey: #a3a3a3;
  --border-color-grey: #282828;
  --border-color-grey-2: #7a7a7a;
  --border-r-1: 8px;
  --border-r-2: 40px;
  --text-white: #fff;
  --main-color: #fcd51e;
  --hover-main-color: #fde368;
  --font-family: 'SFPro';
  --font-family-m: 'SFPro M';
  --font-family-b: 'SFPro B';
  --font-family-l: 'SFPro L';
  --font-family-bl: 'SFPro Black';

}
body,
#main,
#wrapper {
  background: var(--black-color-2) !important;
  color: var(--text-white) !important;
  font-size: 16px;
  font-family: var(--font-family-m);
}
h1,h2,h3,h4,h5,h6,b,strong {
  font-family: var(--font-family-b);

}
.text_white {
  color: var(--text-white);
}
.text_main_color {
  color: var(--main-color);
}
.text_center {
  text-align: center;
}
.header_chapter {
  position: fixed;
  top: 0;
  display: flex;
  width: 100%;
  border-bottom: 1px solid #282828;
  background: var(--black-color-2);
  z-index: 1000;
  padding: 15px 0;
  opacity: 0;
}
.header_chapter.show {
  opacity: 1;
}
.single-chuong header#header,
.single-chuong footer {
  display: none;
}

section.content_chapter {
  background: var(--black-color-2);
  color: #fff;
}

.breadcrumb_story {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  justify-content: center;
}
.breadcrumb_story a {
  color : #fff;
}
.header_chapter .container {
  display: flex;
}
.content_container_chap {
  padding-top: 60px;
}
.inner_container_chap {
  /* width: 65vw;
  margin: 0 auto; */
}

.inner_chap_content .chap_content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.inner_container_chap h3.title_chap_story {
  font-size: 16px;
  color: #fff;
}

.inner_container_chap h1.chapter_title {
  font-size: 32px;
  color: #fff;
}

.inner_container_chap .group_title {
  margin-bottom: 50px;
}
.wrapper {
  position: relative;
}
.wrapper .cover_link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.navigation_chap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.navigation_chap .navi_chap {
  width: calc(50% - 10px);
  /* border-radius: 8px; */
  /* border: 1px solid #606060; */
  /* background: #181818; */
  /* padding: 8px; */
}

.navigation_chap .navi_chap .inner_navi {
  display: flex;
  align-items: center;
  gap: 28px;
  border-radius: 8px;
  border: 1px solid #606060;
  background: #181818;
  padding: 8px;
}

.navigation_chap .navi_chap .inner_navi span {
  display: block;
}

.navigation_chap .navi_chap .inner_navi .chapter_navi_img img {
  max-width: 80px;
  border-radius: 10px;
}

.navigation_chap .navi_chap .chapter_navi_title {
  width: 100%;
}
.block_bg--grey {
  border-radius: var(--border-r-1);
  border: 1px solid var(--border-color-grey);
  background: var(--black-color);
}
.share_post_container {
  padding: 20px;
}

.share_post_container .title_share {
  text-align: center;
  font-size: 20px;
  border-bottom: 1px solid var(--border-color-grey-2);
  padding-bottom: 20px;
  margin-bottom: 16px;
}

.wrap_share {
  display: flex;
  justify-content: space-between;
}

.share_social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.wrap_share .sub_title {
  text-align: center;
  margin-bottom: 16px;
}
.copy_links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-color-grey-2);
  border-radius: var(--border-r-1);
  padding: 8px;
}
button#copy_button {
  padding: 4px 8px;
  margin: 0;
  background: var(--main-color);
  text-transform: unset;
  border-radius: var(--border-r-1);
  color: var(--black-color);
  font-size: 16px;
  line-height: 1.5;
}

.link_text_area {
  max-width: max-content;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  font-size: 14px;
  width: calc(79% - 32px);
}
.wrap_share__social {
  width: 40%;
}

.wrap_share__link {
  width: 55%;
}
.btn_main {
  display: block;
  width: 100%;
  padding: 10px;
  color: var(--black-color);
  text-align: center;
  border-radius: var(--border-r-2);
  font-size: 16px;
  cursor: pointer;
}
.btn_main--yellow {
  background: var(--main-color);
}
.btn_main--grey {
  background: var(--bg-grey);
}
.btn_main:hover {
  color: #fff;
}
.block_follow .item_post_follow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.block_follow {
  display: flex;
  align-items: center;
  padding: 8px;
  margin: 20px 0;
  justify-content: space-between;
}

.block_follow .item_post_follow img {
  width: 130px;
  border-radius: 8px;
}

.block_follow .item_post_follow .post_truyen_info--title a {
  color: #fff;
}
.post_follow_button button {
  text-transform: unset;
  margin: 0;
  width: calc(100% - 68px);
  height: 48px;
  line-height: 1;
}
.post_follow_button {
  display: flex;
  align-items: center;
  width: 22%;
  gap: 15px;
}

.spell_nofi {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.post_truyen_info--title a {
  font-size: 18px;
  font-weight: 700;
}
.item_story .item_story_name h3 {
  font-size: 18px;
  color: #fff;
  /* max-width: max-content; */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.item_story .item_story_info {
  font-size: 1rem;
}

.item_story .item_story_name {
  color: #fff;
}

.item_story .item_content {
  margin-top: 14px;
  font-size: 1rem;
}

.item_story .item_img {
  aspect-ratio: 3/4;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  /*height: 21.104vw;*/
  /*position: relative;*/
}
.item_story .item_img .tag_new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--main-color);
  color: #fff;
  padding: 2px 8px;
  border-radius: 1rem;
  font-size: 14px;
  font-weight: 700;
}
.item_story .item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.title_relate_story {
  font-size: 32px;
}
.relate_story {
  padding-bottom: 50px;
}
.sort_tab {display: flex;align-items: center;justify-content: end;gap: 8px;}

.sort_tab .item_sort.active {
  color: var(--main-color);
  /*color: #000;*/
  transition: all 0.5s;
  opacity: 1;
}

.sort_tab .item_sort {
  border-radius: 8px;
  transition: all 0.5s;
  padding: 2px 8px;
  background: transparent;
  cursor: pointer;
  opacity: 0.5;
  font-size:0.9rem;

}
.bottom_chapter {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: -1;
  border-top: 1px solid var(--border-color-grey);
  background-color: var(--black-color-2);
  padding: 16px 0;
  opacity: 0;
}
.bottom_chapter.show {
  opacity: 1;
  z-index: 100;
}
.bottom_chapter .toogle_method {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bottom_chapter .toogle_method > * {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.chap_navi {
  cursor:pointer;
}
.chap_navi a {
  display: flex;
  align-items: center;
  color: #fff;
}

.bottom_chapter .toogle_method .chap_navigation {
}

.bottom_chapter .toogle_method .chap_total {
  width: 32px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
}
.story_extension {
  position: fixed;
  z-index: 999;
  right: 20px;
  bottom: 12%;
}

.story_extension .extension_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--main-color);
  margin: 8px 0;
  color: var(--black-color);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.extension_speeds .extension_icon--hide {
  display: none;
}
.extension_speeds .extension_icon--hide.show {
  display: flex;
}
.extension_speeds.show .extension__speed {
  display: flex;
}
.extension_speeds .extension__speed {
  display: none;
}
.inner_item_info {
  display: flex;
  gap: 20px;
}

.inner_item_info .item_col.item_content {
  width: calc(100% - 300px);
}

.inner_item_info .item_col.item_col_img img {
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  overflow: hidden;
}

.inner_item_info .item_col.item_content .title_post_truyen {
  margin-bottom: 0;
  font-size: 2rem;
  color: #fff;
}
.list_post_cat {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.list_post_cat .item_cat_tag a {
  border-radius: 4px;
  background: var(--border-color-grey);
  padding: inherit;
  color: #fff;
  padding: 8px;
}

.list_post_cat .item_cat_tag {
  flex: 0 0 auto;
  padding: inherit;
}

.inner_item_info .item_col.item_content .content_post{
  max-height: 200px;
  overflow-y: scroll;
  padding-right: 1rem;
}
ul.notification-list {
  overflow-y: scroll;
  padding-right: 1rem;
  height: calc(100% - 50px);
}
.inner_item_info .item_col.item_content .content_post::-webkit-scrollbar-thumb,.list_chapter_hidden .inner_popup_chap .list_chap::-webkit-scrollbar-thumb,
.list_chapter::-webkit-scrollbar-thumb ,ul.notification-list::-webkit-scrollbar-thumb{
  border-radius: 10px;
  background: var(--black-color-2);
  background-color: #c1c1c1;

  /*width: 4px;*/
}
.inner_item_info .item_col.item_content .content_post::-webkit-scrollbar,.list_chapter_hidden .inner_popup_chap .list_chap::-webkit-scrollbar,
.list_chapter::-webkit-scrollbar,ul.notification-list::-webkit-scrollbar {
  width: 6px;
  background: var(--black-color-2);

  border-radius: 10px;
}
.list_chapter_hidden .inner_popup_chap .list_chap{
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.inner_item_info .item_col.item_content .group_btn {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.inner_item_info .item_col.item_content .group_btn .btn_item {
  min-width: 180px;
}
.list_chapter .item_chap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list_chapter .item_chap .item_chap__img {
  aspect-ratio: 61/88;
  width: 74px;
  border-radius: 4px;
  overflow: hidden;
}

.list_chapter .item_chap .item_chap__content {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  width: 55%;
}

.list_chapter {
  gap: 16px;
  display: flex;
  flex-direction: column;
  max-height: 500px;
  overflow: auto;
  padding-right: 1rem;
  min-height: 300px;
}
.item_chap__content__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.list_chapter .item_chap  .item_chap_stt {
  width: 50%;
  text-align: right;
}
.item_post_truyen_info .list_chapter {
  margin: 50px 0;
}
.inner_list_cat_theloai {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.inner_list_cat_theloai .item_cat_tag {
  border-radius: 40px;
  background: var(--border-color-grey);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 2px 12px;
  gap: 4px;
  cursor: pointer;
  border: 1px solid var(--border-color-grey);
  transition: all 0.5s;
  height: 40px;
}
.inner_list_cat_theloai .item_cat_tag.active,
.inner_list_cat_theloai .item_cat_tag:hover {
  border-color: #fff;
  transition: all 0.5s;
}
.list_story {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 30px;
}
.inner_list_cat_theloai .item_cat_tag .item_cat_img img {
  width: 2rem;
  aspect-ratio: 1;
}
.swiper_sg_toon {
  padding-bottom: 0px !important;
  /*padding-top: 50px;*/
  /*height: 40vh;*/
}
.swiper_sg_toon .item_slide,.swiper_sg_toon .item_slide .item_img,.swiper_sg_toon .item_slide img {
  height: 100%;
}

span.swiper-pagination-bullet {
  background: #d9d9d9;
  opacity: 1;
}

span.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--main-color);
}
.default_ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list_cat_tab_change ul {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.list_cat_tab_change ul li {
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  position: relative;
  margin-bottom: 0;
  padding: 20px 0;
  transition: all 0.5s;
}
.list_cat_tab_change ul li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--main-color);
  transition: all 0.5s;
  bottom: 0;
}
.list_cat_tab_change ul li.active {
  color: var(--main-color);
}
.list_cat_tab_change ul li.active::before,
.list_cat_tab_change ul li:hover::before {
  width: 100%;
}
.list_cat_tab_change {
  border-bottom: 1px solid #333;
  border-top: 1px solid #333;
  margin-bottom: 20px;
}
.list_story_2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}

div#list_story_sgtoon {
  min-height: 50px;
}

.list_story_2 .item_story .item_img {
  aspect-ratio: 7/3;
  /*height: 180px;*/
}
.flex-right ul.header-nav.header-nav-main .header_coins #popup_coins{
  cursor: pointer;

}
.list_story_2 .item_story .item_img:before {
  content: '';
  position: absolute;
  right: 20px;
  top: 20px;
  background: url("../img/logo_truyen.svg") no-repeat center center;
  background-size: contain;
  width: 26px;
  height: 26px;
}
.flex-right ul.header-nav.header-nav-main svg {
  width: 1.5rem;
  height: 1.5rem;
}
header#header li a {
  font-family: var(--font-family-m);
}
.flex-right ul.header-nav.header-nav-main a {
  padding: 0;
}
.absolute-footer.dark {
  border-top: 1px solid #333;
}
.menu_footer {
  flex-direction: row !important;
  gap: 20px;
}

.menu_footer a.ux-menu-link__link:hover {
  color: unset;
}

.col_right_footer .inner_form input[type="email"] {
  background: #181818;
  border: none;
  border-radius: 100px;
  height: 58px;
  margin: 0;
  padding-left: 24px;
}

.col_right_footer .inner_form {
  position: relative;
}

.col_right_footer .inner_form .btn_form_submit {
  position: absolute;
  bottom: 50%;
  right: 8px;
  transform: translateY(50%);
}

.col_right_footer .inner_form .btn_form_submit span.wpcf7-spinner {
  position: absolute;
}

.col_right_footer
.inner_form
.btn_form_submit
input.wpcf7-form-control.wpcf7-submit.has-spinner {
  margin: 0;
  background: var(--main-color);
  border-radius: 50px;
}
.list_item_rank_top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.item_rank_top.item_story .item_img {
  aspect-ratio: 3/4;
  /*height: 530px;*/
  /*position: relative;*/
}

.item_rank_number span.item_rank_number__icon {
  width: 56px;
  height: 74px;
  display: block;
}
span.item_rank_number.item_rank_number__1 .item_rank_number__icon {
  background: url("../img/rank1.svg") no-repeat center center;
  background-size: cover;
}
span.item_rank_number.item_rank_number__2 .item_rank_number__icon {
  background: url("../img/rank2.svg") no-repeat center center;
  background-size: cover;
}
span.item_rank_number.item_rank_number__3 .item_rank_number__icon {
  background: url("../img/rank3.svg") no-repeat center center;
  background-size: cover;
}
ul.list_truyen_cat {
  list-style: none;
  display: flex;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 0;
  flex-wrap: wrap;
  align-items: center;
}

ul.list_truyen_cat li {
  border: 1px solid currentColor;
  padding: 2px 12px;
  border-radius: 100px;
  font-size: 1rem;
  flex: 0 0 auto;
  margin-bottom: 0;
}
.item_rank_meta {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}
.list_item_rank_bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 100px;
}

.list_item_rank_bottom .item_story,
.list_item_rank_bottom .item_story .item_story_main {
  display: flex;
  align-items: center;
}
.list_item_rank_bottom .item_story {
}
.list_item_rank_bottom .item_story .item_story_main {
  display: flex;
  gap: 20px;
  width: calc(60% - 60px);
}
.list_item_rank_bottom .item_story .item_img {
  /*height: 260px;*/
  width: auto;
}
.list_item_rank_bottom .item_story .item_count {
  color: var(--main-color);
  font-size: 2.5rem;
  width: 60px;
  text-align: center;
  margin-right: 20px;
}

.list_item_rank_bottom .item_story .item_story_main .item_story_name h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.list_item_rank_bottom .item_story .item_content {
  margin-top: 0;
  display: flex;
  width: calc(40% - 60px);
  justify-content: space-between;
}
.box_list_type {
  border-radius: 20px;
  background: #fef2b9;
  padding: 60px 32px 40px;
}

.box_list_type .wrap_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.content p:last-of-type {
  margin-bottom: 0;
}

.box_list_type .wrap_box .btn_main {
  width: auto;
}

.box_list_type .wrap_box .content {
  color: var(--text-grey);
}
.box_list_type {
  border-radius: 20px;
  background: #fef2b9;
  padding: 60px 32px 40px;
}

.box_list_type .wrap_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content p:last-of-type {
  margin-bottom: 0;
}

.box_list_type .wrap_box .btn_main {
  width: auto;
}

.box_list_type .wrap_box .content {
  color: var(--text-grey);
}

.item_type_story {
  background: #fff;
  /*height: 220px;*/
  color: var(--text-grey);
  border-radius: 8px;
  padding: 24px;
}

.item_type_story .item_bottom {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  display: none;
}

.item_type_story .item_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item_type_story .item_head input {
  margin: 0;
  position:relative;
  z-index: 2;
}
.item_type_story .item_head input:checked:before {
  content: '';
    position: absolute;
  top: -5px;
    left: -4px;
    width: 20px;
    height: 20px;
  background: var(--main-color);
    border-radius: 50%;
  z-index: 3;
}
.item_type_story .item_head .item_title {
  font-size: 1.5rem;
  font-weight: 700;
}
.swiper-button-prev:after,
.swiper-button-next:after {
  display: none !important;
}
.swiper_btn_navigation {
  width: 3rem !important;
  height: 3rem !important;
}
.list_block_cat {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.list_block_cat h2.title_cat {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 0;
}

.list_block_cat .item_block_cat .wrap_head {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}

section.home_page_3 {
  padding: 50px 0;
}
section {
  padding: 40px 0;
}
.item_link a {
  display: flex;
  color: var(--main-color);
  width: max-content;
  gap: 13px;
}
.item_link {
  width: max-content;
}
.item_link.text_center {
  margin: 0 auto;
}
.item_story_slide .item_story .item_img {
  /*height: 21.354vw;*/
}
.slider_gal .list_truyen_cat {
  display: none;
}
.slider_gal .swiper-slide.swiper-slide-active {
}
.slider_gal .swiper-slide .item_img {
  transition: all 0.5s;
  transform: scaleY(0.6);
}

.slider_gal .swiper-slide.swiper-slide-active .item_img {
  transition: all 0.5s;
  transform: scaleY(1);
}
.slider_gal .swiper-slide.swiper-slide-next .item_img,
.slider_gal .swiper-slide.swiper-slide-prev .item_img {
  transition: all 0.5s;
  transform: scaleY(0.8);
}
.slider_gal .swiper-slide .item_content {
  display: none;
  transform: translateY(-100px);
  transition: all 0.5s;
}
.slider_gal .swiper-slide.swiper-slide-active .item_content {
  display: block;
  transform: translateY(0px);
  transition: all 0.5s;
  text-align: center;
}
.home_page_4,
.home_page_6 {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 60px 0;
}
.home_page_6 .title_section {
  margin-bottom: 40px;
}
.text_color--linear {
  background: linear-gradient(
          270deg,
          #940079 -16.83%,
          #e9d649 46.52%,
          #ff8b30 95%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: max-content;
}

.text_center.text_color--linear {
  margin: 0 auto;
}

.home_page_4 h2.title_section {
  margin-bottom: 60px;
  font-size: 2.5rem;
  font-weight: 600;
}
.slider_rank {
  padding: 40px 0;
}
.slider_rank .item_rank_top {
  display: flex;
  gap: 20px;
}

.slider_rank .item_rank_top .item_img {
  /*height: 23.594vw;*/
}
.slider_rank .item_rank_top .item_rank_meta {
  flex-direction: column;
  gap: 8px;
}
.home_page_7 {
  padding: 40px 0;
}
.title_section {
  font-size: 2.5rem;
}
.inner_slider:has(.swiper-pagination) .swiper {
  padding-bottom: 50px;
}
.item_story__2 .item_content h2 {
  font-size: 1.125rem;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.share_social ul {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0;
}

.share_social ul li {
  margin: 0 !important;
}
.slider_vỉewed .swiper-slide .list_truyen_cat {
  display: none;
}
.title_section--3 {
  font-size: 2rem;
}
.list_tabs_content {
  margin-top: 30px;
}
.list_tabs_content .tabs_content {
  display: none;
}
.list_tabs_content .tabs_content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.list_method {
  display: flex;
  align-items: center;
  grid-area: 10px;
}
.inner_item_info .item_col.item_content .item_content_head {
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.item_method {
  cursor: pointer;
  display: flex;
  align-items:center;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.item_method svg,
.item_method path {
  transition: all 0.5s;
}
.item_method:hover {
  -webkit-animation-name: buzz-out-on-hover;
  animation-name: buzz-out-on-hover;
  -webkit-animation-duration: 0.75s;
  animation-duration: 0.75s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}

@keyframes buzz-out-on-hover {
  10% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  20% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
  30% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  40% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
  50% {
    -webkit-transform: translateX(2px) rotate(1deg);
    transform: translateX(2px) rotate(1deg);
  }
  60% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
    transform: translateX(-2px) rotate(-1deg);
  }
  70% {
    -webkit-transform: translateX(2px) rotate(1deg);
    transform: translateX(2px) rotate(1deg);
  }
  80% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
    transform: translateX(-2px) rotate(-1deg);
  }
  90% {
    -webkit-transform: translateX(1px) rotate(0);
    transform: translateX(1px) rotate(0);
  }
  100% {
    -webkit-transform: translateX(-1px) rotate(0);
    transform: translateX(-1px) rotate(0);
  }
}
.item_method.active path {
  stroke: var(--main-color);
  fill: var(--main-color);
}
.list_account_story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px 150px;
}

.item_story__3 {
  border-radius: 8px;
  display: flex;
  background: #181818;
  gap: 16px;
  align-items: center;
}

.item_story__3 .item_img {
  /*height: 10.417vw;*/
  width: auto;
}

.item_story__3 .item_content {
  margin: 0;
}
.clear_story {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1000;
  cursor: pointer;
}
div#share_container button.f-button {
  top: 10px;
  right: 10px;
  border-radius: 50%;
  width: 2rem;
  height: 2rem !important;
  background: var(--text-grey);
  min-height: unset;
}
.d-none {
  display: none;
}
.advance_page .swiper.swiper_sg_toon {
  padding-top: 0;
}

.advanced_page_2 .item_img_banner {
  margin-bottom: 3rem;
}
.home_page_5 .item_img_banner {
    margin: 2rem 0;
}
.popup-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-content {
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  min-width: 300px;
  position: relative;
}
.popup-close {
  position: absolute;
  top: 10px; right: 10px;
  cursor: pointer;
  font-size: 20px;
}
.chap_item_buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.chap_item_buy__thumb {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notification {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ffd700;
  padding: 15px 20px;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.hidden { display: none; }
.chap_item_buy__thumb img {
  height: 120px;
}

.chap_item_buy__thumb h3 {
  margin: 0;
  color: #fff;
}
.link_pack_purchase {
  margin: 20px auto 0px;
  display: block;
  width: max-content;
}
div#popup-purchase {
  min-width: 40%;
  background: var(--border-color-grey);
  padding: 16px 8px;
  border-radius: 8px;
}
.btn_group {
  display: flex;
  gap: 20px;
}
.list_pack_purchase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 70%;
}

.item_purchase {
  /* border: 1px solid var(--main-color); */
  padding: 0;
  border-radius: 0.75rem;
  cursor: pointer;
  background: #000;
  transition: all 0.5s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  z-index: 4;
  font-size: 16px;
}

.item_purchase .item_title {
  font-size: 1.3rem;
}

.item_purchase:hover {
  background: #fff;
  color: #333;
}
div#popup_purchase_qr {
  min-width: 50vw;
  min-height: 50vh;
  background: var(--border-color-grey);
  padding: 2rem;
  border-radius: 8px;
}
.popup_purchase_qr h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.popup-content .popup_purchase__content {
  display:none;
}
.popup-content.loading .popup_purchase__content {
  display:block;
}
.list_chapter_hidden {
  display:none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}
.list_chapter_hidden.active {
  display:block;
}
.list_chapter_hidden--layer {
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.list_chapter_hidden .inner_popup_chap {
  background: var(--border-color-grey);
  height: 100%;
  width: 30%;
  position: absolute;
  right: 0;
  padding: 1rem 2.5rem ;
}
.list_chapter_hidden .inner_popup_chap h3 {
  font-size: 2rem;
  color: #fff;
}
.list_chapter_hidden .inner_popup_chap .toggle_close {
  position: absolute;
  right: 50px;
  top: 32px;
}

.list_chapter_hidden .inner_popup_chap .list_chap .item_chap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.list_chapter_hidden .inner_popup_chap .list_chap .item_chap .item_img {
  aspect-ratio: 61 / 88;
  width: 80px;
  border-radius: 4px;
  overflow: hidden;
}
a.open_notifications {
  color: #fff;
}

a.open_notifications span.badge {
  position: absolute;
  right: -11px;
  top: -8px;
  background: var(--main-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #333;
  padding: 0.5rem;
  justify-content: center;
}

.notification-icon {
  position: relative;
}
div#show_popup_nofi {
  min-width: 50vw;
  min-height: 50vh;
  background: var(--border-color-grey);
  padding: 2rem;
  border-radius: 8px;
  height: 60vh;
}
ul.notification-list a:hover {
  color: unset;
}
ul.notification-list {}

div#show_popup_nofi ul.notification-list a .item_img {
  width: 130px;
  aspect-ratio: 3/4;
  border-radius: 10px;
}
.item_coins_buy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}
.item_purchase__tag {
  background: red;
  width: max-content;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.item_purchase .item_content {
  width: 60%;
  padding: 13px 16px;
  border: 2px solid var(--main-color);
  border-radius: 0.75rem 0 0 0.75rem;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.item_purchase .item_price {
  width: 40%;
  text-align: center;
  background: var(--main-color);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black-color);
  font-family: var(--font-family-b);
  font-size: 1.2rem;
}
.item_purchase:before, .item_purchase:after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  left: 60%;
  top: -16px;
  transform: translateX(-60%);
  border: 2px solid var(--main-color);
  background: #000;
  overflow: hidden;
  border-radius: 50%;
  z-index: 20;
}
.item_purchase:before {
  border-top: none;
}
.item_purchase:after {
  top: unset;
  bottom: -16px;
  border-bottom: none;
}
.header_coins {
  position:relative;
}
.header_coins .popup_coins__content,.header_user .header_user__content {
  position: absolute;
  top: 120%;
  left: 0;
  background: var(--border-color-grey);
  padding: 16px 8px;
  border-radius: 8px;
  width: 430px;
  z-index: 1000;
  transform: translateX(-50%);
}
.header_user .header_user__content {
  left: unset;
  right: 0;
  transform: translateX(0);
}
.header_coins .list_pack_purchase {
  width: 100%;
}

.item_coins_buy__item {
  display: flex;
  align-items: center;
  gap: 3px;
}
.popup_coins__quote__wrap {
  position:absolute;
  left: 12%;
  border-radius: 8px;
  background: var(--Grey-grey-800, #1F1F1F);
  top: 0;
  padding :8px;
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 0%;
  transition: all 0.5s;
}
.popup_coins__quote__wrap .list {
  display: flex;
  align-items: center;
  gap: 5px;
}

.popup_coins__quote__wrap.active {
  display: flex;
  transition: all 0.5s;
  width: max-content;
}
.title_popup_coins{
  display: flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.header_user__close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}
.user_content {
  border-radius: 6px;
  border: 1px solid #6A590D;
  position: relative;
  min-height: 96px;
  margin-top:40px;
  display: flex;
  align-items: end;
  padding: 20px;
  margin-bottom: 40px;
}

.user_content img.avatar {
  position: absolute;
  top: -20px;
  border-radius: 100px;
  background:  lightgray 50% / cover no-repeat;
  box-shadow: 0 0 14.1px 0 rgba(252, 213, 30, 0.30);
}

.user_content .user_name {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  margin-top: 75px;
}

.user_wallet {
  color: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 500;
  margin: 10px  0.5rem;

}

.user_wallet span.wallet {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user_wallet a.purchase_coins {
  background: var(--main-color);
  border-radius: 8px;
  padding: 4px 12px !important;
  display: block;
  font-size: 16px;
  color: var(--black-color);
}

.list_popup__links .list_popup__links__item a {
  color: #fff;
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  gap: 8px;
  font-size: 1rem;
}

.list_popup__links__item {}

.list_popup__links {
  margin: 0 1rem;
}

.header_user__contact a{
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #333;
  gap: 8px;
  color: #fff;
  margin: 24px 0;
  padding: 8px 12px !important;
}
.header_user__contact  a {

}
.header_user__content a {
  color: #fff;
}

.header_user__logout a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FE0002;
}
.popup-content.loading .loading-spinner {
  display: block;
}
.loading-spinner {
  display: none;
  margin: 25px 0;
  padding: 20px 0 0 0;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #667eea;
  font-weight: 600;
  font-size: 16px;
}

.loading-dots::after {
  content: "...";
  animation: dots 1.5s infinite;
}

@keyframes dots {

  0%,
  20% {
    content: ".";
  }

  40% {
    content: "..";
  }

  60%,
  100% {
    content: "...";
  }
}
.purchase_page .popup_coins__quote {
  margin-bottom: 20px;
  text-align: right;
}
.popup_buy_chap__info {
  margin-bottom: 1rem;
}

.chap_coins_pay {
  display: flex;
  align-items: center;
  gap: 6px;
}
div#show_popup_nofi h3 {
  color: #fff;
}

div#show_popup_nofi ul.notification-list a {
  color: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
}
.header_user__content.header_user_login {
  border-radius: 20px;
  background: var(--Yellow-yellow-100, #FEF2B9);
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.25);
  text-align:center;
  color :#333;
  padding: 20px;
  width: 400px;
}
.header_user__content.header_user_login h2.popup-title {
  font-size: 1.5rem;
  color: #000;
  margin-top: 30px;
  margin-bottom: 12px;
}
.popup_login_social__button .nsl-container-buttons {
  width: 100%;
}

.popup_login_social__button .nsl-button {
  align-items: center;
  border-radius: 20px !important;
  border-color: #fff;
}

.nsl-button.nsl-button-default.nsl-button-google {
  border-radius: 20px;
}
.nav>li a svg path{
  transition:all 0.5s;

}
.nav>li a:hover svg path{
  fill-opacity:0.7;
  transition:all 0.5s;
}

.popup_coins__content .item_purchase:before, .popup_coins__content  .item_purchase:after {
  background: #282828;
}
.only_mb {
  display: none;
}
.item_method  a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search ul.nav-dropdown {
  background: #000;
  border-radius: 25px;
  border-width: 1px;
}

.header-search ul.nav-dropdown input {
  background: transparent;
  color: #fff;
  height: 32px;
  border-radius: 16px 0 0 16px;
}

.header-search ul.nav-dropdown button.ux-search-submit {
  background: var(--main-color);
  border-radius: 0 16px 16px 0;
  height: 32px;

}
.slide_type:not(:hover) .swiper_btn_navigation {
  opacity: 0;
  transition: opacity 0.5s;
}

/* Khi hover vào slider -> hiện navigation */
.slide_type:hover .swiper_btn_navigation {
  opacity: 1;
  transition: opacity 0.5s;
}

/* Nhưng nếu là nút disable thì vẫn giữ opacity gốc 0.35 */
.slide_type:hover .swiper_btn_navigation.swiper-button-disabled {
  opacity: 0.35;
}
.header_user__logout {
  margin: 0 1rem;
}
.content_buy_all {
  margin: 2rem 0;
}
.share_post_container .inner_popup {
  width: 100%;
}
.fancybox__container.is-ready {
  max-width: 100vw;
}
.home_page_6 .inner_section ,.home_page_4 .inner_section {
  background-repeat: no-repeat;
  background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 20px 60px;
}
.home_page_6 {
  padding: 0;
}
.home_page_4 .item_story_info,.home_page_6 .item_story_info {
  display: none;
}
.box_list_type h3 {
  font-size: 2.2rem;
}

input.term_checkbox:checked:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  background: var(--main-color);
  border-radius: 10px;
  top: -2px;
  left: -3px;
}
.sg_toon .sort_tab  {
  padding: 1rem 0;
  border-bottom: 1px solid #333;
  border-top: 1px solid #333;
  margin-top: 1.5rem;
}
@media (max-width: 1200px) {
  .item_story .item_img {
    /*height: 25vw;*/
  }
  div#popup-purchase {
    width: 70%;
  }
  header ul.nav.header-bottom-nav.nav-center.mobile-nav.nav-line-bottom {
    justify-content: start;
    flex-wrap: nowrap;
    overflow-y: scroll;
    gap: 15px;
  }
  header ul.nav.header-bottom-nav.nav-center.mobile-nav.nav-line-bottom li {
    flex: 0 0 auto;
  }
  .header_coins .popup_coins__content, .header_user .header_user__content {
    position: fixed;
    transform: none;
    right: 16px;
    top: 120px;
    left: unset;
    width: calc(80% - 35px);
  }
  .item_purchase {
    min-height: 100px
  }
  .list_account_story {
    gap: 30px;
  }
}
@media (max-width: 767px) {
  html {
    font-size: 12px;
  }
  .header-search ul.nav-dropdown {
    width: 100%;
    left: 0 !important;
    position: fixed;
    top: 53px;

  }
  .home_page_6 .inner_section , .home_page_4 .inner_section {
    padding: 20px 10px;
  }
  .only_mb {
    display: block;
  }
  .only_pc {
    display: none;
  }
  .item_story .item_img,.item_story_slide .item_story .item_img {
    border-radius: 6px;
  }
  .box_list_type {
    padding:20px;
  }
  .home_page_2 .inner_silde {
    margin-bottom: 1.3rem;
  }
  .item_type_story {
    /*height: 140px;*/
  }
  .slider_rank .item_rank_top {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }

  .slider_rank .item_rank_top .item_content {
    /*display: flex;*/
    /*align-items: center;*/
    opacity: 0;
  }
  .slider_rank .item_story_slide.swiper-slide-active .item_rank_top .item_content {
    opacity: 1;
  }

  div#popup-purchase {
    width: 90%;
  }
  .swiper_sg_toon {
    /*height: 30vh;*/
  }
  .item_purchase .item_title {
    font-size: 1.3rem;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

  }
  .list_pack_purchase{
    width: 100%;
  }
  .list_story {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0;
  }
  .list_story_2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .box_list_type .wrap_box {
    flex-direction: column;
    margin-bottom: 10px;
    align-items: start;
  }
  .swiper_sg_toon {
    padding: 30px 0;
  }
  .inner_slider:has(.swiper-pagination) .swiper {
    padding-bottom: 30px;
  }
  section {
    padding:20px 0;
  }
  .inner_item_info {
    flex-direction: column;
  }

  .inner_item_info .item_col.item_content {
    width: 100%;
  }

  .inner_item_info .item_col.item_content .item_content_head {
    flex-direction: column;
    gap:3px;
  }
  .wrap_share {
    flex-direction: column;
    gap: 20px;
  }
  li.header-search a {
    padding: 0 !important;
  }
  .wrap_share>* {
    width: 100%;
  }

  .share_social {
    justify-content: space-between;
  }
  .block_follow {
    flex-direction: column;
    gap: 20px;
  }

  .post_follow_button {
    width: 100%;
  }
  .slider_rank .item_rank_top .item_rank_meta span.item_rank_number {
    margin: 0 auto;
  }

  .slider_rank ul.list_truyen_cat {
    justify-content: center;
    margin-bottom: 0.8rem;
  }

  .home_page_4, .home_page_6 {
    padding: 25px 0;
  }

  .slider_rank {
    padding: 20px 0;
  }

  .title_section {
    font-size: 2.4rem;
  }

  .list_block_cat h2.title_cat {
    font-size: 2.4rem;
  }

  .home_page_4 h2.title_section {
    margin-bottom: 0;
  }

  .slider_gal {
    padding: 20px 0;
  }

  .home_page_4 h2.title_section {
    font-size: 2.4rem;
  }

  .item_img_banner.wrapper {margin: 1.5rem 0;}
  .item_img_banner.wrapper img {
    min-height: 20vh;
    object-fit: cover;
  }
  .item_post_follow .vote-button {
    height: 40px;
    line-height: 40px;
    padding: 0;
    margin-top: 10px;
    width: max-content;
    padding: 0px 12px;
    text-transform: unset;
  }

  .item_post_follow .item_method.item_method--nofi {
    justify-content: end;
    margin-bottom: 1rem;
  }

  .col_right_footer .inner_form .btn_form_submit {
    right: 8px;
  }
  .item_method  svg {
    width: 2rem;
    height: 2rem;
  }
  .inner_item_info .item_col.item_content .group_btn {
    gap: 8px;
    flex-wrap: wrap;
  }
  .item_post_truyen_info .item_col.item_col_img {
    text-align: center;
  }
  .item_post_truyen_info .list_chapter {
    margin: 20px 0;
  }
  .list_chapter .item_chap .item_chap__content {
    width: 81%;
  }
  ul.list_truyen_cat {
    gap: 4px;
  }
  .list_item_rank_top .item_rank_top {
    display: flex;
    gap: 20px;
  }

  .list_item_rank_bottom .item_story .item_img {
    /* width: 100px; */
  }

  .list_item_rank_bottom .item_story .item_story_main {
    width: calc(60%);
    display: block;
    flex-direction: column;
  }
  .list_item_rank_bottom .item_story .item_count {
    width: auto;
    text-align:left;
  }
  .list_item_rank_bottom .item_story .item_content {
    flex-direction: column;
  }

  .list_item_rank_bottom .item_story .item_count {
    margin: 0;
  }
  .box_list_type .box_content_btn {
    width: max-content;
    padding: 10px 15px;
    margin-left: auto;
  }

  .item_type_story .item_bottom {
    -webkit-line-clamp: 3;
  }
  .list_block_cat .item_block_cat .wrap_head {
    margin-bottom: 1.3rem;
  }
  .list_block_cat {
    gap: 20px;
  }
  .list_item_rank_top {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
  }

  .list_item_rank_bottom {
    margin-top: 12px;
  }
  .list_item_rank_bottom .item_story {
    /* gap: 20px; */
    justify-content: space-between;
  }

  .rank_page .item_img {
    width: calc(40% - 20px) !important;
  }

  .rank_page .item_content {
    width: 50%;
  }

  .list_item_rank_bottom .item_story .item_content {
    width: 100%;
  }
  .list_account_story {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .inner_item_info .item_col.item_col_img img {
    height: 240px;
    object-fit: contain;
  }
  .inner_item_info .item_col.item_content .group_btn .btn_item {
    min-width: unset;
  }

  .inner_item_info .item_col.item_content .group_btn .btn_item .btn_main {
    padding: 6px 14px;
  }
  .share_post_container {
    width: 95vw;
  }
  .navigation_chap .navi_chap .inner_navi {
    gap: 8px;
  }

  .list_chapter_hidden .inner_popup_chap {
    width: 65%;
    padding-right: 0;
  }
  .item_rank_number span.item_rank_number__icon {
    width: 30px;
    height: 37px;
  }
}