.chapter .row,
.form-horizontal .form-group {
    margin-left: 0;
    margin-right: 0;
}
.chapter .row .col-xs-12 {
    padding-left: 0;
    padding-right: 0;
}
.toggle-nav-open {
    left: 0;
}
.ads-320-100-backup-1 {
    min-height: 351px;
}
.ads-video-pc {
    display: table;
    margin: 0 auto;
    min-height: 285px;
    height: 285px;
    overflow: hidden;
}
.video-mobile,
.video-mobile > .ads-320-100-backup-1 {
    height: 251px;
    min-height: 251px;
}
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
    opacity: 0.35;
    filter: alpha(opacity=35);
}
.dark-theme {
    background-image: url(/images/bg_dark.gif);
    background-color: #232323;
    background-repeat: repeat;
    color: rgba(255, 255, 255, 0.6);
}
.dark-theme img {
    opacity: 0.9;
}
.dark-theme a {
    color: #b1b1b1;
}
.dark-theme .chapter .truyen-title {
    color: #82a82d;
    text-shadow: 0 0 1px #000;
    filter: dropshadow(color=#000000, offx=0, offy=0);
}
.dark-theme .ad-link,
.dark-theme .chapter .chapter-c {
    color: rgba(255, 255, 255, 0.6);
}

.container-fluid-switch #chapter-big-container {
    width: auto;
}
#body_chapter.hidenav #nav {
    display: none;
}
#body_chapter.hidenav #chapter-big-container {
    margin-top: 10px;
}
.glyphicon-menu-updownswitch:before {
    content: "\e260";
}
#body_chapter.hidenav .glyphicon-menu-updownswitch:before {
    content: "\e259";
}
#body_chapter.background-hatsan {
    background-image: url(../images/bg_op.png);
    background-color: #f2f2f2;
    background-repeat: repeat;
}
#body_chapter.background-sachcu {
    background-image: url(../images/bg_book_op.png);
    background-color: #c2b49b;
    background-repeat: repeat;
}
#body_chapter.background-232323 {
    background-image: url(../images/bg_dark.gif);
    background-color: #232323;
    background-repeat: repeat;
}
#body_chapter.background-F4F4F4 {
    background-image: none;
    background-color: #f4f4f4;
}
#body_chapter.background-E9EBEE {
    background-image: none;
    background-color: #e9ebee;
}
#body_chapter.background-F4F4E4 {
    background-image: none;
    background-color: #f4f4e4;
}
#body_chapter.background-EAE4D3 {
    background-image: none;
    background-color: #eae4d3;
}
#body_chapter.background-D5D8DC {
    background-image: none;
    background-color: #d5d8dc;
}
#body_chapter.background-FAFAC8 {
    background-image: none;
    background-color: #fafac8;
}
#body_chapter.background-EFEFAB {
    background-image: none;
    background-color: #efefab;
}
#body_chapter.background-FFF {
    background-image: none;
    background-color: #fff;
}
#body_chapter.size-16px .chapter-c {
    font-size: 16px;
}
#body_chapter.size-18px .chapter-c {
    font-size: 18px;
}
#body_chapter.size-20px .chapter-c {
    font-size: 20px;
}
#body_chapter.size-22px .chapter-c {
    font-size: 22px;
}
#body_chapter.size-24px .chapter-c {
    font-size: 24px;
}
#body_chapter.size-26px .chapter-c {
    font-size: 26px;
}
#body_chapter.size-28px .chapter-c {
    font-size: 28px;
}
#body_chapter.size-30px .chapter-c {
    font-size: 30px;
}
#body_chapter.size-32px .chapter-c {
    font-size: 32px;
}
#body_chapter.size-34px .chapter-c {
    font-size: 34px;
}
#body_chapter.size-36px .chapter-c {
    font-size: 36px;
}
#body_chapter.size-38px .chapter-c {
    font-size: 38px;
}
#body_chapter.size-40px .chapter-c {
    font-size: 40px;
}
#body_chapter.font-PalatinoLinotype .chapter-c {
    font-family: "Palatino Linotype", serif;
}
#body_chapter.font-Bookerly .chapter-c {
    font-family: Bookerly, serif;
}
#body_chapter.font-Minion .chapter-c {
    font-family: Minion, serif;
}
#body_chapter.font-SegoeUI .chapter-c {
    font-family: "Segoe UI", sans-serif;
}
#body_chapter.font-Roboto .chapter-c {
    font-family: Roboto, sans-serif;
}
#body_chapter.font-RobotoCondensed .chapter-c {
    font-family: "Roboto Condensed", sans-serif;
}
#body_chapter.font-PatrickHand .chapter-c {
    font-family: "Patrick Hand", sans-serif;
}
#body_chapter.font-NoticiaText .chapter-c {
    font-family: "Noticia Text", sans-serif;
}
#body_chapter.font-TimesNewRoman .chapter-c {
    font-family: "Times New Roman", serif;
}
#body_chapter.font-Verdana .chapter-c {
    font-family: Verdana, sans-serif;
}
#body_chapter.font-Tahoma .chapter-c {
    font-family: Tahoma, sans-serif;
}
#body_chapter.font-Arial .chapter-c {
    font-family: Arial, sans-serif;
}
#body_chapter.lineheight-100 .chapter-c {
    line-height: 100%;
}
#body_chapter.lineheight-120 .chapter-c {
    line-height: 120%;
}
#body_chapter.lineheight-140 .chapter-c {
    line-height: 140%;
}
#body_chapter.lineheight-160 .chapter-c {
    line-height: 160%;
}
#body_chapter.lineheight-180 .chapter-c {
    line-height: 180%;
}
#body_chapter.lineheight-200 .chapter-c {
    line-height: 200%;
}
.dark-theme .navbar-default,
.dark-theme.navbar-default {
    background: #242f39;
    border-bottom-color: #242f39;
    box-shadow: 0 0 1px rgba(10, 10, 10, 0.4);
}
.dark-theme .navbar-breadcrumb {
    background: #2e3740;
    border-top: 0;
}
.dark-theme .breadcrumb a,
.dark-theme .breadcrumb-container {
    color: #b1b1b1;
}
.dark-theme .breadcrumb > .active,
.dark-theme .breadcrumb > .active a {
    color: #dadada;
}
.dark-theme .form-control,
.dark-theme .input-group-addon,
.dark-theme .list-group-item,
.dark-theme .list-search-res,
.dark-theme .search-holder .form-control {
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
    background: #1c242d;
    border: 1px solid #192128;
    color: #fff;
}
.dark-theme .search-holder > .input-group-btn > .btn {
    color: #92bb35;
    border-color: #92bb35;
    text-shadow: 1px 1px 0 rgba(10, 10, 10, 0.4);
    background: rgba(10, 10, 10, 0.15);
    border: 1px solid;
    margin-left: 2px;
}


    
.toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 10px;
    z-index: 1000;
    width: 100%;
    background: #191B24;
    -webkit-box-shadow: -1px -1px 10px rgba(0, 0, 0, 0.07);
    box-shadow: -1px -1px 10px rgba(0, 0, 0, 0.07);
}

    .toolbar button {
      padding: 8px 12px;
      cursor: pointer;
    }

    /* Font panel */
    #SettingPanel {
      position: absolute;
      bottom: 60px;
      background: #191B24;
      padding: 15px;
      border: 1px solid hsla(0, 0%, 100%, .1);
      display: none;
      z-index: 1001;
      box-shadow: 0 0 10px rgba(0,0,0,0.2);
      border-radius: 8px;
    }

    /* Chapter list menu */
    #chapterMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: calc(100% - 62px);
    background: #191B24;
    border-right: 1px solid hsla(0, 0%, 100%, .1);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1001;
}
    .p-header-chapter-menu span {
        font-weight: 500;
    }
    .setting-header span {
        font-weight: 500;
    }
    .setting-header {
        display: flex    ;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid hsla(0, 0%, 100%, .1);
        margin-bottom: 10px;
        color: #fff;
    }

    button#closeChapterMenu {
        background: transparent;
        border: 0;
        font-size: 20px;
    }
    .list-chapter-menu {
  height: calc(100% - 50px); /* giữ nguyên chiều cao như cũ */
  overflow-y: auto;

  /* Scrollbar đẹp hơn */
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: #888 #191B24;      /* Firefox */
}

/* Chrome, Edge */
.list-chapter-menu::-webkit-scrollbar {
  width: 6px; /* độ rộng thanh trượt */
}

.list-chapter-menu::-webkit-scrollbar-track {
  background: #191B24; /* màu nền rãnh */
  border-radius: 3px;
}

.list-chapter-menu::-webkit-scrollbar-thumb {
  background-color: #888;    /* màu thanh cuộn */
  border-radius: 3px;
  transition: background-color 0.3s;
}
    .chapter-item {
      border-bottom: 1px solid #ddd;
      padding: 5px 0;
    }

    .chapter-item small {
      display: block;
      color: gray;
    }
    .p-chapter-header img {
    max-height: 70px;
    width: auto;
    border-radius: 5px;
    margin: 0 10px;
}
.p-chapter-header {
    border-bottom: 1px solid hsla(0, 0%, 100%, .1);
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 500;
}

.chapter-c h1 {
    font-size: 30px;
    margin-bottom: 30px;
}
.p-chapter-content {
    background: rgba(255, 255, 255, 0.063);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}
.btn-chapter-nav {flex: 1; padding: 15px;}
.chapter-nav {
    background: rgba(255, 255, 255, .3);
    border-radius: 12px;
    padding: 10px 0;
    margin-bottom: 30px;
}
button.btn-chapter-nav {
    background: transparent;
    border: 0;
    border-right: 1px solid #d9d9d9;
    border-left: 1px solid #d9d9d9;
}
.toolbar-chapter {
    flex: 1;
}
.p-toolbar-bottom {
    display: flex;
    align-items: center;
    padding: 5px 0;
}
.p-toolbar-bottom button {
    background: transparent;
    border: 0;
    color: rgb(229 231 235);
}
.p-toolbar-bottom .btn-chapter-nav {flex: unset; color: rgb(229 231 235)}
.toolbar-right {
    display: flex;
}
ul.chapter-list {
    list-style: none;
    padding: 0 15px;
}
ul.chapter-list li {
    padding: 10px 0px;
    border-bottom: 1px solid hsla(0, 0%, 100%, .1);
}
ul.chapter-list li:last-child {
    border-bottom: 0;
}
ul.chapter-list li.active a {
    color: #1d52d7;
    font-weight: 500;
}
 @media (max-width: 768px) {
    .toolbar .container {width: 100%;}
}
 @media (max-width: 600px) {
    #SettingPanel {right:0}
    .p-toolbar-bottom span, .btn-chapter-nav span {
    display: none;
    }
    .p-toolbar-bottom i, .btn-chapter-nav i {
    font-size: 20px;
}
.toolbar-right, .toolbar-right .btn-group{gap:1px}

  }

  
  .related-box .realted-body.row img {
    width: 200px;
}

.related-box {
    background-color: #e6e6e6;
    padding: 10px;
}


.related-box .related-head-title {
    font-weight: bold;
    font-size: 16px;
}

.related-box .related-head {
    margin: 10px 0;
    text-align: left;
}
.related-box .title{
    padding: 5px 0;
}
.related-box .background-FFF {
    background: #fff;
}

.related-box .col-md-3.text-center {
    font-weight: bold;
}
@media screen and (max-width: 769px){
    .related-box .realted-body.row img {
        width: 100%;
    }
}

div#warning-box {
    font-size: 16px;
    font-family: "SF Pro Display", sans-serif;;
    text-align: center;
    line-height: 1.5;
    margin-left: -15px;
    margin-right: -15px;    
}

div#warning-box a{
    border: 1px dashed #1d52d7;
    border-radius: 3px;
    padding: 8px 16px;
    font-weight: 500;
    margin: 0 5px;
    color: #fff;
}

img.img-shopee {
    max-height: 300px;
    width: auto;
}

span.color-underline {
    -webkit-text-decoration: underline wavy #1d52d7;
    text-decoration: underline wavy #1d52d7;
    white-space: nowrap;
}

p.pad-0 {
    margin: 0;
}

img.click-here {
    height: 39px;
}

a.truyen-title {
    display: flex;
    align-items: center;
    text-align: left;
    color: #fff;
}