ul {
    padding-inline-start: 0px !important;
}
.publication-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.book-item {
    text-align: center;
    border: 1px solid #F2F2F2;
    box-shadow: 0px 4px 6px 0px rgba(44,44,44,0.04);
    border-radius: 4px;
    box-sizing: content-box;
    background: #fff;
    position: relative;
}
.book-image {
    width: 100%;
    height: 250px !important;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.book-title {
    font-size: 16px;
    font-weight: bold;
}

.last-update-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
}
ul.last-update-list {
    list-style: none !important;
    display: inline;
}
.last-update-list li .cate {
    white-space: nowrap;
    color: #555;
    margin-right: 5px;
    align-items: center;
    width: 100px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.last-update-list li h4 {
    flex-grow: 1;    
    margin: 2px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.last-update-list li .chapter {
    color: #333;
    width: 130px;
    font-size: 13px;
    flex-shrink: 0;
}
.last-update-list li .author {
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 130px;
    flex-shrink: 0;
}
.last-update-list li span {
    white-space: nowrap;
    font-style: italic;
    font-size: 13px;
    margin-left: 20px;
    width: 85px;
    text-align: right;
    flex-shrink: 0;
    justify-content: center;
    display: contents;
}
.story-main .flexbox {
    flex-wrap: nowrap;
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}
.story-main .cover {
    flex-grow: 1;
    margin: 20px 20px 0;
    width: 160px;
    box-shadow: 0 1px 6px rgba(0,0,0,.35), 0 0 5px #f9f2e9 inset;
    position: relative;
    flex-shrink: 0;
}
.story-main .story-info {
    flex-grow: 2;
    position: relative;
    margin-top: 20px;
    padding-right: 160px;
}
.story-main .story-info .story-title {
    margin-bottom: 12px;
    margin-right: 130px;
}
.story-main .story-info h1 {
    font-size: 28px;
    display: inline;
    margin-right: 20px;
}
.story-main .story-info .genres {
    margin-bottom: 15px;
    margin-right: 130px;
}
.story-main .story-info .genres .st-1 {
    color: #090;
    border-color: #72ee72;
}
.story-main .story-info .genres .free-0 {
    color: #fff;
    border-color: #bf2c24;
    border-color: var(--primary);
    background: #bf2c24;
    background: var(--primary);
}
.story-main .story-info .genres a {
    color: #bf2c24;
    color: var(--primary);
    border-color: #bf2c24;
    border-color: var(--primary);
}
.story-main .story-info .statistics {
    margin-bottom: 16px;
    font-size: 0.9em;
}
.story-main .story-info .statistics>p:first-child {
    padding-left: 0;
}
.story-main .story-info .statistics>p:last-child {
    border-right: 0;
}
.story-main .story-info .statistics>p {
    padding: 0 10px;
    border-right: 1px solid #ddd;
    display: inline-block;
    font-size: 12px;
}
.story-main .story-info .reading {
    margin-bottom: 10px;
    font-style: italic;
    font-size: 13px;
    color: #888;
}
.story-main .story-info .actions a {
    margin-right: 1px;
    font-size: 13px;
    padding: 0 10px;
}
.button-primary {
    color: #fff;
    background: #bf2c24;
    background: var(--primary);
    border-color: #bf2c24;
    border-color: var(--primary);
    position: relative;
    cursor: pointer;
    z-index: 0;
}
.button-blue {
    color: #3f5a93;
    border-color: #3f5a93;
}
.button {
    height: 34px;
    line-height: 32px;
    padding: 0 12px;
    display: inline-block;
    vertical-align: middle;
    border-width: 1px;
    border-style: solid;
    color: #bf2c24;
    color: var(--primary);
    text-decoration: none;
}
.buy-story-box {
    margin-top: 15px;
    border: 2px dashed #bf2c24;
    text-align: center;
    padding: 10px;
}
.buy-story-box p {
    font-size: 1.3em;
}
.buy-story-box p span {
    color: #ed2024;
    font-weight: bold;
}
#unlock-story {
    height: auto;
    line-height: 20px;
    padding: 5px 12px;
}
.story-main .story-info .rate {
    position: absolute;
    right: 20px;
    top: 0;
    font-size: 1.7em;
    font-weight: 700;
    text-align: center;
    max-width: 100px;
}
.text-center {
    text-align: center;
}
.tabs {
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 30px;
}
.tabs li.active {
    border-bottom: 2px solid #ed4259;
}
.tabs li {
    display: inline-block;
    line-height: 40px;
    padding: 0 21px;
    font-size: 1.3em;
    font-weight: 700;
}
.tabs li.active a {
    color: #ed4259;
}
.flexbox {
    display: flex;
    justify-content: space-between;
}
.tabs li a {
    color: #a6a6a6;
}
.tab-content {
    display: none;
}
.flex-70 {
    width: 70%;
}
.flex-25 {
    width: 25%;
}
.chapter-list {
    display: flex;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.chapter-list li {
    width: 50%;
    border-bottom: 1px solid #ebebeb;
    padding-right: 30px;
    position: relative;
}
.chapter-list li a {
    display: block;
    color: #262626;
    line-height: 40px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.author-box {
    text-align: center;
    padding: 12px;
    border: 1px solid #090;
}
.avatar-border.lvl2::before {
    background-image: url(https://cdn.enovel.mobi/avatars/lvl2.webp);
}
.avatar-border::before {
    content: "";
    position: absolute;
    width: 192.5%;
    height: 172.5%;
    left: -47%;
    bottom: -25%;
    z-index: 1;
    background-size: contain;
    background-repeat: no-repeat;
}
.author-box .author-avatar img {
    border-radius: 50px;
}
.bg-grey {
    background: #f7f5f0;
}
.author-box .author-avatar {
    display: block;
    width: 100px;
    height: 100px;
    position: relative;
    margin: 20px auto;
}
.avatar-border::before {
    content: "";
    position: absolute;
    width: 192.5%;
    height: 172.5%;
    left: -47%;
    bottom: -25%;
    z-index: 1;
    background-size: contain;
    background-repeat: no-repeat;
}
.author-box h4.author-name {
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: normal;
}
.author-box .statistics {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 30px 0;
    display: flex;
    font-size: 13px;
}
.author-box .statistics>div {
    width: 33.33334%;
    flex-shrink: 0;
}
.author-box .statistics i {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 24px;
    background: #bf2c24;
    background: var(--primary);
    color: #fff;
    display: block;
    margin: auto;
    font-size: 18px;
}
.author-box .statistics label {
    display: block;
    margin: 10px 0;
}
.author-box .statistics strong {
    color: #bf2c24;
    color: var(--primary);
    font-size: 1.4em;
    display: block;
}
.story-data {
    margin-top: 30px;
}
.description.long .extend {
    position: absolute;
    left: 0;
    bottom: 0;
    background: #eee;
    font-style: italic;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    color: var(--primary);
}
div#work-information {
    position: relative;
}
.pagination {
    text-align: center;
}
span.page-numbers.current {
    background: #bf2c24 !important;
    color: #fff;
    padding: 3px 9px;
}
.pagination a, .pagination span {
    margin: 4px 7px;
}

@media (max-width: 768px) {
    .publication-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.is-not-user-logged-in ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
}

.is-not-user-logged-in {
    display: inline-flex;
    list-style: none;
    padding: 0;
}

.is-not-user-logged-in li {
    display: inline;
    margin-right: 5px; /* Khoảng cách giữa các mục */
}

.is-not-user-logged-in li a {
    color: #fff;
}

.is-not-user-logged-in li::after {
    content: "/";
    margin-left: 5px; /* Khoảng cách giữa dấu "/" và mục tiếp theo */
    color: #333; /* Màu của dấu "/" */
}
.is-not-user-logged-in li:last-child::after {
    content: none; /* Loại bỏ dấu "/" sau mục cuối cùng */
}


.is-user-logged-in #user-menu-trigger {
    color: #fff;
}
.is-user-logged-in ul {
    list-style: none;
    background-color: #ddd;
    padding: 0;
    padding: 10px;
    display: none;
}

.is-user-logged-in ul li {
    margin-bottom: 5px;
}

.is-user-logged-in ul li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.is-user-logged-in ul li a:hover {
    color: #007bff;
    border-radius: 3px;
}

#user-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    z-index: 999;
    padding: 5px;
    border: 1px solid #ccc;
    width: 200px;
    right: 0;
    top: 44px;
    transition: opacity 0.3s ease-in-out; /* Thêm hiệu ứng chuyển động */
    opacity: 0; /* Ẩn menu ban đầu */
}

#user-menu.open {
    display: block;
    opacity: 1; /* Hiển thị menu với độ trong suốt 1 */
}

#user-menu li {
    list-style: none;
    display: block;
    margin-bottom: 5px; /* Tạo khoảng cách giữa các mục */
}

.is-user-logged-in li {
    border-bottom: 1px solid #a6a6a6;
}

.is-user-logged-in li a {
    text-align: end;
}

.is-user-logged-in li:last-child {
    border-bottom: 0;
}
/* CSS cho phần bình luận */
.custom-comments {
    margin-bottom: 30px;
}

.custom-comments h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    border-bottom: 1px solid #eee;
    padding: 7px 0;
}

.comment-list li:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: bold;
    color: #007bff;
    display: flex;
    justify-content: start;
    align-items: center;
}
.comment-avatar {
    border-radius: 90px;
    border: 1px solid #ddd;
    overflow: hidden;
    width: 35px;
    height: 35px;
    margin-right: 5px;
}
.comment-date {
    font-style: italic;
    color: #777;
    font-size: 12px;
}
.comment-content {
    margin-left: 33px;
}
.comment-content {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

.comment-content p{
    margin-bottom: 5px;
}

/* Form bình luận */
.comment-form-container {
    margin-top: 15px;
}

.comment-form-container h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.comment-form {
    margin-top: 15px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.comment-form input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 4px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.comment-form input[type="submit"]:hover {
    background-color: #0056b3;
}

textarea#comment {
    height: 81px;
}
#follow-user {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .flexbox {
        display: inline-block !important;
    }
    .story-main .cover {
        margin: 0 auto;
        box-shadow: 0 1px 6px rgba(0,0,0,.35), 0 0 5px #f9f2e9 inset;
    }
    .story-main .story-info .rate {
        position: unset;
        font-size: 1em;
        font-weight: 400;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    .story-info {
        display: inline-block;
        padding-right: 0 !important;
        position: unset;
    }
    .story-main .story-info .story-title {
        margin: 0 auto !important;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    .flex-70 {
        width: 100%;
    }
    .flex-25 {
        width: 100%;
    }
    .actions {
        justify-content: center;
        display: flex;
    }
    .statistics {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        text-align: center;
    }
    .story-main .story-info .genres {
        margin: 0 auto !important;
        display: flex;
        justify-content: center;
    
    }
    .story-main .story-info .statistics {
        margin-top: 10px;
    }
    .chapter-list {
        display: block;
        padding: 0;
        margin: 0 30px 30px;
    }
    
}

ul.chapter-list {
    margin-left: 35px;
}

.item-info {
    display: block;
    clear: both;
}
.hubX-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}
.hubX-form-item {
    flex: 1;
    margin-right: 20px;
}
.hubX-form-row .hubX-form-item:last-child {
    margin-right: 0;
}
.item-info-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
input#wp-submit {
    padding: 0px 30px !important;
    display: flex;
    height: 40px;
    margin: 0 auto;
}

.story-main .flexbox {
    width: 100%;
}

@media screen and (max-width: 768px) {
    .chapter-list li {
        width: 100%;
    }

    .pagination-container {
        display: grid;
        justify-content: center;
    }
}

.chapter-list li {
    width: 100%;
    border-bottom: 1px solid #ebebeb;
    padding-right: 30px;
    position: relative;
}

.chapter-list li a {
    display: block;
    color: #262626;
    line-height: 40px;
    overflow: hidden;
    white-space: unset;
    text-overflow: ellipsis;
}

.pagination-container {
    text-align: center;
    margin-bottom: 20px;
    /* Điều chỉnh khoảng cách dưới cùng của phần container */
}

.pagination-links {
    display: inline-block;
    margin-top: 10px;
    /* Điều chỉnh khoảng cách trên cùng của phần links */
}

.pagination-link,
.chapter-select {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff !important;
    max-width: 250px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 5px;
    /* Điều chỉnh khoảng cách giữa các phần tử */
}

.prev-link {
    float: left;
}

.next-link {
    float: right;
}

.chapter-select {
    padding: 8px 15px;
    font-size: 17px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #000 !important;
    background-color: #f2f2f2;
}

.pagination-container {
    display: flex;
    justify-content: center;
}


#menu-1-8380f16 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#menu-1-8380f16 li {
    flex: 1 0 23%;
    /* Độ rộng của mỗi phần tử */
    margin-bottom: 10px;
    /* Khoảng cách giữa các mục */
    list-style-type: none;
    /* Loại bỏ dấu chấm liệt kê */
    break-inside: avoid;
    /* Tránh cắt ngang giữa các cột */
}

#menu-1-8380f16 li a {
    text-decoration: none;
    /* Loại bỏ gạch chân liên kết */
    color: #333;
    /* Màu chữ */
    display: block;
    /* Hiển thị liên kết dạng block để lấp đầy toàn bộ phần tử li */
    padding: 5px 0;
    /* Khoảng cách lề nội dung trong liên kết */
}

.transparent-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 0%);
    display: none;
    z-index: 9999;
}