/* -- Reader Tools -- */
.language + .read-topbar { margin-top: 20px; }
.read-topbar { display: flex; align-items: flex-start; margin-bottom: 30px; }
.read-topbar .left { order: -1; flex: 1; }
.read-topbar .right { margin-left: auto; flex: 1; }
.read-topbar .gpt-quick-btns { margin: 0 auto; }
.read-topbar .left .opt-trigger { float: left; }

.dash-block { display: block; position: relative; z-index: 1; border-radius: 8px; }
.dash-block::before {
    content: attr(title); font-size: 7px; padding: 0px 4px; position: absolute; 
    top: 0; left: 50%; transform: translate(-50%, -50%); border-radius: 5px;
    background-color: #474747; color: #CCCCCC80; text-transform: uppercase;
}
.dash-block::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; right: 0; border: 1px dashed; border-radius: inherit; pointer-events: none; z-index: -1; opacity: .2; }

.gpt-quick-btns { display: flex; justify-content: center; }

.addlist .trigger {float: right;}

@media (max-width: 499px) {
    .gpt-quick-btns ~ .left .opt-trigger > span,
    .gpt-quick-btns ~ .right .trigger > span,
    .gpt-quick-btns ~ .right .bookmark--trigger > span { font-size: 9px; }
    .gpt-quick-btns ~ .right .addlist .trigger::before,
    .gpt-quick-btns ~ .left .opt-trigger::before { margin-right: 4px; }
    .gpt-quick-btns ~ .right .bookmark--trigger::before { margin-left: -2px !important; }
    .gpt-quick-btns ~ .left .opt-trigger { padding-left: 16px; }

    .gpt-quick-btns ~ .right { margin-right: -12px; }
    .gpt-quick-btns ~ .left { margin-left: -12px; }
    .bookmark__popup {left: 35%!important;}
    .addlist .trigger, .bookmark--trigger {display: flex!important;}
}

.icon-only {
    width: 40px; height: 40px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; border: 0 none !important; outline: none; position: relative;
    background: none !important;
}
.icon-only > i { transition: color .2s ease, opacity .2s ease, transform .2s ease; }
.icon-only:hover > i { color: #95ac7c; transform: scale(1.1); }
.icon-only:active > i { opacity: .7; transform: scale(0.92); }
.icon-only-text { width: 1px; height: 1px; overflow: hidden; position: absolute; opacity: 0; }

/* Dialog */
.gpt-dialog {
    --gpt-dialog-padding: 24px;
    --gpt-dialog-height: 590px;
    --gpt-dialog-width: 616px;
    --gpt-dialog-tab-height: 76px;
    --gpt-dialog-radius: 12px;
    --gpt-dialog-color: #95ac7c;
    --gpt-dialog-bg: #474747;
    --gpt-dialog-label-color: #A9B2A0;
    --gpt-dialog-btn-color: #CCCCCC;
    --gpt-dialog-items: 204, 204, 204;
    --gpt-dialog-block-radius: 8px;
    --gpt-dialog-color-red: #D85A5A;
}

.gpt-dialog-overlay, .gpt-dialog { position: fixed; left: 0; top: 0; bottom: 0; right: 0; }
.gpt-dialog { display: none; overflow: hidden; overflow-y: auto; pointer-events: none; z-index: 1100; }
.gpt-dialog * { box-sizing: border-box; }
.gpt-dialog-content { height: 100%; margin: 0 auto; }
.gpt-dialog-box {
    display: block; position: relative; background-color: var(--gpt-dialog-bg); overflow: hidden;
    transition: transform .25s ease, opacity .25s ease; transform: scale(.9) translateY(50px); opacity: 0; pointer-events: none;
}
.gpt-dialog-overlay {
    background-color: #000; opacity: .5; z-index: 1099;
    opacity: 0; pointer-events: none; transition: opacity .1s ease;
}
.gpt-dialog-cont {
    overflow: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
    height: calc(var(--gpt-dialog-height) - var(--gpt-dialog-tab-height));
}
.gpt-dialog-cont > .tab-pane { padding: var(--gpt-dialog-padding); }

.gpt-dialog.open,
.gpt-dialog.open ~ .gpt-dialog-overlay { display: block !important; }

html.gpt { overflow: hidden !important; }
html.gpt .gpt-dialog .gpt-dialog-box { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
html.gpt .gpt-dialog ~ .gpt-dialog-overlay { opacity: .5; pointer-events: auto; }

/* Close */
.gpt-dialog-close {
    position: absolute; right: 0; top: 0; padding: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center; outline: none;
    height: 40px; width: 40px; background: none; border: 0 none; cursor: pointer;
}
.gpt-dialog-close .icon { width: 18px; height: 18px; opacity: .5; transition: opacity .2s ease; }
.gpt-dialog-close:hover .icon { opacity: .7; }

/* Tabs */
.gpt-dialog-tabs {
    display: flex; align-items: stretch; box-shadow: inset 0 -1px 0 0 rgba(204, 204, 204, 0.10);
    margin: 0; list-style: none; user-select: none;
}
.gpt-dialog-tabs > li { display: inherit; flex: 0 0 20%; max-width: 100px; }
.gpt-dialog-tabs > li a {
    flex: 0 0 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 16px 8px; text-align: center; color: inherit;
    font-size: 12px; line-height: 16px; text-decoration: none !important;
}
.gpt-dialog-tabs > li a:not(.active) { cursor: pointer; }
.gpt-dialog-tabs > li a * { transition: opacity .2s ease, color .2s ease; }
.gpt-dialog-tabs > li a span { opacity: .7; display: block; white-space: nowrap; }
.gpt-dialog-tabs > li a i {
    width: 24px; height: 24px; font-size: 16px; opacity: .7;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}
.gpt-dialog-tabs > li a i + span { margin-top: 4px; }

.gpt-dialog-tabs > li a:hover * { opacity: 1; }

.gpt-dialog-tabs > li.active a { box-shadow: inset 0 -1px 0 0 var(--gpt-dialog-color); }
.gpt-dialog-tabs > li.active a i { color: var(--gpt-dialog-color); }
.gpt-dialog-tabs > li.active a * { opacity: 1; }

@media (max-width: 599px) {
    .gpt-dialog-box { padding-top: 40px; height: 100%; display: flex; flex-direction: column; }
    .gpt-dialog-cont { flex: 1 1 auto; }
    .gpt-dialog-tabs > li a { padding: 12px 4px; }
}
@media (max-width: 499px) {
    .gpt-dialog-tabs > li a { font-size: 10px; }
    .gpt-dialog { --gpt-dialog-padding: 16px; }
 }
@media (min-width: 600px) {
    .gpt-dialog { overflow-y: auto; }
    .gpt-dialog-overlay { transition: opacity .35s ease; }
    .gpt-dialog-content { display: flex; align-items: center; max-width: calc(var(--gpt-dialog-width) + (var(--gpt-dialog-padding) * 2)); padding: var(--gpt-dialog-padding); }
    .gpt-dialog-box { flex: 1 1 auto; box-shadow: 0 16px 32px -8px rgba(0,0,0,0.3); border-radius: var(--gpt-dialog-radius); }
    .gpt-dialog-tabs { padding: 0 var(--gpt-dialog-padding); height: var(--gpt-dialog-tab-height); }
}

/* Tab Conts */
.gpt-dialog-cont .form-group { margin-bottom: 16px; }
.gpt-dialog-cont .form-group > label { color: var(--gpt-dialog-label-color); font-size: 12px; }
.gpt-dialog-cont .form-group input, .gpt-dialog-cont .form-group textarea { width: 100%; }
.gpt-dialog-cont .form-group textarea { height: 370px; }
.tab-content > .tab-pane.active {background: #474747;}
.gpt-dialog-cont .form_submit { display: flex; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.gpt-dialog-cont .btn { color: var(--gpt-dialog-btn-color) !important; }
.gpt-dialog-cont .btn-border { border: 1px solid rgba(255,255,255,0.1); }
.gpt-dialog-cont .form_submit { gap: 8px; }
.gpt-dialog-cont .block-grey { border: 1px solid #3b3b3b; margin-top: var(--gpt-dialog-padding); }
.gpt-dialog-cont .form_submit .custom-check { margin-right: auto; }

.block-grey { padding: 16px; border-radius: var(--gpt-dialog-block-radius); background-color: rgba(var(--gpt-dialog-items), 0.05); }

.pitem + .pitem { margin-top: 8px; }
.pitem {
    position: relative; line-height: 19px;
    background-color: rgba(var(--gpt-dialog-items), 0.05); border-radius: var(--gpt-dialog-block-radius);
    transition: background-color .2s ease;
}
.pitem:hover { background-color: rgba(var(--gpt-dialog-items), 0.1); }

.promt-item { padding: 12px 16px; display: flex; }
.promt-item-icon {
    width: 20px; height: 20px; flex: 0 0 20px; font-size: 16px; margin-right: 8px;
    display: flex !important; align-items: center; justify-content: center; opacity: .3;
}
.promt-item:not(.status-public) .promt-item-icon::before { display: none; }
.promt-item:not(.status-public) .promt-item-icon::after { content: ""; display: block; width: 0; height: 0; border-radius: 50%; border: 4px solid; }
.promt-item.status-public .promt-item-icon { opacity: .7; }

.promt-item-title {
    flex: 1 1 auto; color: inherit !important; text-decoration: none !important;
    min-width: 0; word-break: break-all; padding-top: 1px;
}
.promt-item-title::after { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.promt-item-rate { padding-top: 1px; white-space: nowrap; margin-left: 12px; text-align: right; }
.promt-item-rate .green { font-weight: bold; }
.promt-item-rate .red { color: var(--gpt-dialog-color-red); } 
.promt-item-fav {
    margin-left: 12px; opacity: .5;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    width: 20px; height: 20px; min-width: 20px; border: 0 none !important; padding: 0 !important;
    background: none !important; outline: none; position: relative;
    transition: opacity .2s ease, color .2s ease;
}
.promt-item-fav:hover { opacity: .7; }
.promt-item-fav > i { transform: transform .2s ease; }
.promt-item-fav:hover > i { transform: scale(1.08); }
.promt-item-fav:active > i { transform: scale(0.92); }
.promt-item-fav::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); }
.promt-item-fav.added { color: #CAB132; opacity: 1 !important; }

.promt-book { padding: 12px; }
.promt-book-foot {
    display: flex; align-items: center; margin: -12px; margin-top: 12px;
    border-top: 1px solid rgba(var(--gpt-dialog-items), 0.1);
    font-size: 12px; line-height: 16px;
}
.promt-book-title { font-weight: bold; padding-top: 1px; }
.promt-book-title + .promt-book-text { margin-top: 4px; }
.promt-book-text { display: block; padding-top: 1px; color: inherit; text-decoration: none !important; }
.promt-book-text:hover { color: var(--gpt-dialog-color); }
.promt-book-rate, .promt-book-author { padding: 12px; opacity: .8; }
.promt-book-author {
    margin-left: auto; max-width: 50%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-decoration: none !important;
}
a.promt-book-author { color: var(--gpt-dialog-color); }
a.promt-book-author:hover { opacity: 1; }

.promt-book-rate {
    border: 0 none !important; background: none !important; outline: none;
    vertical-align: middle; font-size: inherit; cursor: pointer;
    white-space: nowrap;
}
.promt-book-rate:hover { opacity: 1; }
.promt-book-rate > i { font-size: 16px; }
.promt-book-rate::after { content: attr(title); margin-left: 8px; }

/* / -- Reader Tools -- */

input[type="color"]{border: 1px solid #31313166;}
.read_tools { display: flex; align-items: center; }
.read_tools > .btn { margin-right: 8px; }

.read_tune_dialog, .read_tune_overlay {
    opacity: 0; visibility: hidden; position: fixed; left: 0; right: 0; top: 0; bottom: 0; width: 100%; overflow: hidden;
    transition: opacity .2s ease, visibility 0s linear;
}
.read_tune_dialog, .open + .read_tune_overlay { display: block !important; }
html.rt body { overflow: hidden; }
html.rt .read_tune_body { transform: translateX(0); }
html.rt .read_tune_dialog, html.rt .open + .read_tune_overlay { opacity: 1; visibility: visible; }

.read_tune_dialog { overflow-y: auto; z-index: 1000; pointer-events: none; }
.read_tune_overlay { background-color: rgba(0,0,0,0.1); z-index: 999; }
.read_tune_body {
    float: right; display: flex; align-items: center; min-width: 0; width: 100%; min-height: 100%; max-width: 350px; padding: 1rem 0; box-sizing: border-box;
    transform: translateX(50%); transition: transform .2s ease;
}
.read_tune_box {
    padding: 28px; width: 100%; background-color: #3b3b3b; border: 1px solid #31313166; border-radius: 8px 0 0 8px; box-shadow: 0 0 32px -6px rgba(0,0,0,0.3);
    pointer-events: auto;
}
.read_tune_head { display: flex; margin-bottom: 20px; }
.read_tune_close { width: 42px; height: 42px; padding: .75rem; border: 0 none; background: none; margin: -.875rem; margin-left: auto; cursor: pointer; box-sizing: border-box; }
.read_tune_close svg { width: 18px; height: 18px; vertical-align: top; }
.read_tune_head .title { font-weight: bold; text-transform: uppercase; font-size: 1rem; line-height: 1.2; }
.read_tune_box select, .read_tune_box input { width: 100%; box-shadow: none !important; }
.read_tune_box .form-group label { opacity: .8; }

.comboselect {
    position:relative; display:flex; width:100%;height:40px; overflow: hidden; border-radius:4px; background: #343434bf;
    box-shadow: inset 0 0 0 1px #313131; box-sizing:border-box; border: 1px solid #313131;
}
.comboselect > * { background-color: #363636 !important; box-shadow: none !important; }
.comboselect > select {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    border: 0 none !important;
    width: 300px; padding-left: 110px; padding-right: 130px; background-position: calc(100% - 110px) 50%;
}
.comboselect > button { position: relative; z-index: 1; border: 0 solid #313131; width: 44px; box-sizing: border-box; cursor: pointer; }
.comboselect > button:last-child { border-left-width: 1px; }
.comboselect > button:first-child { border-right-width: 1px; }
.comboselect .plus_icon > span::before, .comboselect .plus_icon > span::after { background-color: #5c5c5c; }
.comboselect-plus { margin-left: auto; }

.select_buttons { display: flex; flex-wrap: wrap; }
.select_buttons input { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; width: 1px; height: 1px; }
.select_buttons > label { position: relative; margin-right: 10px; }
.select_btn {
    cursor: pointer; display: block; width: 44px; height: 40px; padding: 11px 13px; box-shadow: inset 0 0 0 1px #313131;
    border-radius: 4px; box-sizing: border-box; text-align: center;
}
.select_buttons input:checked + .select_btn { box-shadow: inset 0 0 0 1px #95ac7c; color: #95ac7c; }
@media (min-width: 992px) {
    .read_tune_close:hover { opacity: .8; }
    .select_buttons input:not(:checked) + .select_btn:hover { opacity: .6; transition: opacity .2s ease; }
}
.select_btn svg { width: 18px; height: 18px; vertical-align: top; }

@media (max-width: 767px) {
    .read_tune_body { max-width: 260px; }
    .read_tune_box { padding: 20px; overflow-y: scroll;}
    html.rt .read_tune_body { overflow-y: scroll;}
    .bookmark--trigger:before {margin: -8px 0 0 -4px!important;}
}


/* Carousel Novels */
.block-csl * { box-sizing: border-box; }
.block-csl-title { display: flex; align-items: center; padding: 20px; }
.block-csl-title .title { margin: 0; margin-right: auto; }

/* STORY */
.fit-cover { position: relative; display: flex; overflow: hidden; flex-direction: column; flex-grow: 1; background-color: #3f4a5f80; }
.fit-cover img {
    position: absolute; top: 0; left: 50%; display: block;
    min-width: 100%; height: 100%; transform: translateX(-50%);
    object-fit: cover; object-position: center center;
    -o-object-position: center center; -o-object-fit: cover;
}

.block-csl-scrolling { overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.block-csl-list { padding-top: 0; padding-bottom: 20px; }
.block-csl-list:not(.flickity-enabled) { display: flex; }
.block-csl-list:not(.flickity-enabled)::after, .block-csl-list:not(.flickity-enabled)::before { content: ""; min-width: 20px; max-width: 20px; height: 15px; }

@media (min-width: 701px) {
    .block-csl-title { min-height: 64px; padding: 12px 30px; }
    .block-csl-list:not(.flickity-enabled)::after, .block-csl-list:not(.flickity-enabled)::before { min-width: 30px; max-width: 30px; }
    .block-csl-list { padding-bottom: 30px;}
    .bookmark--trigger{padding-right: 0;overflow: unset;}
    .bookmark--trigger > span {max-width: 170px;}
}
@media (min-width: 1201px) {
    .block-csl-title { padding-left: 35px; padding-right: 35px; }
    .block-csl-list:not(.flickity-enabled)::after, .block-csl-list:not(.flickity-enabled)::before { min-width: 35px; max-width: 35px; }
    .block-csl-list { padding-bottom: 35px; }
}

.block-csl-list .csl-story-item + .csl-story-item { margin-left: 16px; }
.block-csl-list .csl-story-item { width: 100%; flex: 0 0 76%; min-width: 300px; max-width: 620px; }
.block-csl-list-pad { display: block; min-width: 35px; max-width: 35px; height: 35px; }
.flickity-slider .csl-story-item { margin-left: 16px; }

.csl-story { position: relative; width: 100%; padding: 16px; border-radius: 12px; background-color: #3131317a; }
.csl-story > .title { font-size: 16px; margin-bottom: 2px; margin-top: 0; min-width: 0; }
.csl-story > .title a { display: block; color: inherit; text-decoration: none !important; transition: color .2s ease; }
.csl-story > .title a::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; z-index: 1; }
.csl-story > .title a > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.csl-story .cover-img .fit-cover { width: 64px; height: 84px; border-radius: 6px; box-shadow: 0 8px 16px 0 #00000026; }

.csl-genre { display: flex; overflow: hidden; pointer-events: none; }
.csl-genre::after, .csl-genre::before { content: ""; position: relative; z-index: 3; width: 1px; background-color: #3d3c3c; box-shadow: 0 0 16px 16px #3d3c3c; pointer-events: none; }
.csl-genre::before { display: none; }

.csl-genre > .small { flex: 1 1 auto; white-space: nowrap; overflow: hidden; }
.csl-genre a { pointer-events: none; }

.csl-cont { margin: 8px 0; }

.csl-tools { display: flex; flex: 1 1 auto; align-items: center; white-space: nowrap; }
.csl-tools-left { display: flex; margin-right: auto; padding-right: 16px; }
.csl-data-item { display: flex; align-items: center; }
.csl-data-item + .csl-data-item { margin-left: 16px; }
.csl-data-item > .rating, .csl-data-item > i { margin-right: 6px; }

.csl-tools .fav_btn { margin: -12px -16px; }
.csl-cont-text { line-height: 1.5em; height: 3em; overflow: hidden; }

.csl-tools .addlist .trigger, .csl-genre a, .moreless__toggle { position: relative; z-index: 2; }

@media (max-width: 575px) {
    .block-csl-scrolling .flickity-viewport { height: 198px; }

    .csl-story .cover-img { float: left; margin: 0 16px 0 0; position: relative; }
    .csl-cont::after { content: ""; display: block; clear: both; }
    .csl-cont-text { height: 6em; overflow: hidden; }

    .csl-tools { margin-top: 8px; }
    .csl-genre { pointer-events: auto; position: relative; z-index: 2; overflow: hidden; margin-left: -16px; margin-right: -16px; }
    .csl-genre::before { display: block; }
    .csl-genre > .small { padding-bottom: 1.5rem; margin-bottom: -1.5rem; overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .csl-genre > .small::after, .csl-genre > .small::before { content: "" ; display:inline-block; min-width: 16px; max-width: 16px; height: 10px; }
}
@media (max-width: 460px) {
    .csl-data-coms { display: none; }
}
@media (min-width: 576px) {
    .block-csl-scrolling .flickity-viewport { height: 160px; }
    .csl-story { display: flex; flex-direction: column; min-height: 160px; padding-left: 132px; }
    .csl-story > .title { order: -1; }
    .csl-genre { order: 0; }
    .csl-cont { order: 1; margin-bottom: 14px; }
    .csl-tools { order: 2; }

    .csl-story .cover-img { position: absolute; left: 16px; top: 16px; }
    .csl-story .cover-img .fit-cover { width: 100px; height: 128px; }
}
@media (min-width: 992px) {
    .csl-story > .title a:hover,
    .csl-story:hover > .title a { color: #95ac7c; }
    .block-csl-scrolling .flickity-viewport { height: 160px; }

    .block-csl .carousel-btns { display: flex !important; }
    .block-csl .carousel-btns button { cursor: pointer; padding: 8px; width: 40px; height: 40px; border: 0 none !important; background: none !important; }
    .block-csl .carousel-btns button:hover { opacity: .8; }
    .block-csl .carousel-btns button + button { margin-left: 8px; }
    .block-csl .carousel-btns button svg { display: block; width: 24px; height: 24px; }

    .block-csl-scrolling:not(.carousel)::-webkit-scrollbar { height: 7px; }
    .block-csl-scrolling:not(.carousel)::-webkit-scrollbar-track { background-color: transparent; }
    .block-csl-scrolling:not(.carousel)::-webkit-scrollbar-thumb { background: transparent; border-radius: 10px; }
    .block-csl-scrolling:not(.carousel)::-webkit-scrollbar-thumb:hover { background: transparent; }
}
.block-csl-list.carousel.flickity-enabled.is-draggable {
    outline: none;
}

.promt-book-text, .promt-item-title{
	cursor:pointer !important;
    word-wrap: break-word; word-break: break-word; 
    max-height: 250px;
    overflow: hidden;
}
.promt-item-title:hover{
	color: var(--gpt-dialog-color) !important;
}
.gpt-dialog-cont::-webkit-scrollbar-thumb {
    background-color: #606060;
    border-right: 0;
    border-radius: 15px;
}
.gpt-dialog-cont::-webkit-scrollbar {
    width: 7px;
}
#prev{justify-self: left;grid-column: 1;}
#next{justify-self: right;grid-column: 3;}
#btn-toc{justify-self: center;grid-column: 2;}
html{scroll-padding-top:60px;}