﻿#explore {
    padding-bottom: 50px;
    padding-top: 13px;
}

#explore .novel-list.horizontal .novel-item .cover-wrap {
    width: 19.8%;
}

#explore .paging {
    border-top: 1px solid var(--border-color-4);
    padding-top: .8rem;
    display: flex;
}

#explore .paging .pagination-container {
    margin: auto;
}

#explore .action-header {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color-4);
    padding-bottom: .8rem;
    margin: .8rem 0 1rem;
}

#explore .action-panel .title {
    font-size: 1rem;
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border-color-4);
    display: inline-block;
}

#explore .action-panel .action-list {
    font-size: 0;
    height: auto;
}

#explore .action-panel .action-list.scroll {
    width: 100%;
}

#explore .action-panel .action-list li {
    display: inline-block;
    margin-right: .5rem;
    margin-bottom: .7rem;
}

#explore .action-panel .action-list li a {
    display: inline-block;
    text-decoration: none;
    padding: 3px 6px;
    border: 1px solid var(--bg-color-secondary);
    background-color: var(--bg-color-secondary);
    color: var(--text-color-secondary);
    border-radius: 5px;
    font-size: .875rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#explore .action-panel .action-list li a:hover {
    border-color: var(--bg-color-secondary-2);
}

#explore .action-panel .action-list li a.active {
    color: #e7e7e7;
    background-color: var(--bg-color-secondary-2);
}

#explore .action-panel .action-list.mb0 li {
    margin-bottom: 0;
}

#explore .action-panel .scroll-wrapper {
    height: auto;
    width: 100%;
    overflow-x: auto;
    position: relative;
    margin-bottom: 10px;
}

#explore .action-panel .scroll-wrapper::-webkit-scrollbar {
    -webkit-appearance: none;
}

#explore .action-panel .scroll-wrapper::-webkit-scrollbar:vertical {
    width: 10px;
}

#explore .action-panel .scroll-wrapper::-webkit-scrollbar:horizontal {
    height: 10px;
}

#explore .action-panel .scroll-wrapper::-webkit-scrollbar-track {
    background: var(--bg-color-4);
}

#explore .action-panel .scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--bg-color-secondary);
    box-shadow: inset 2px 2px 4px 0 rgba(135, 135, 135, .3);
    border-radius: 10px;
}

#explore .action-panel .scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--bg-color-secondary-2);
}

#explore .action-panel .filters {
    display: flex;
    flex-direction: column;
}

#explore .action-panel .filters .filter-item {
    margin-bottom: 15px;
}

#latest-updates,
#typepage,
#browsetags {
    padding: 1rem 0;
}

#latest-updates .paging {
    border-top: 1px solid var(--border-color-4);
    padding-top: .8rem;
    display: flex;
}

#latest-updates .paging .pagination-container {
    margin: auto;
}

#latest-updates header,
#typepage header,
#browsetags header {
    padding: 0 0 20px;
    margin-bottom: 20px;
    position: relative;
    border-bottom: 1px solid var(--border-color-4);
}

#typepage {
    min-height: calc(100vh - 70px - 444px);
}

#typepage .novel-list.horizontal .novel-item.compact {
    height: 5.3rem;
    overflow: hidden;
}

#typepage .novel-list.horizontal .novel-item.compact+.novel-item {
    border-top: 1px solid var(--border-color-4);
    padding-top: 13px;
    height: calc(5.3rem + 13px);
}

#typepage .novel-list.horizontal .novel-item.compact .item-body {
    overflow: hidden;
}

#typepage .novel-list.horizontal .novel-item.compact .item-body .novel-title {
    flex-shrink: 0;
    display: inline-block;
}

#typepage .novel-list.horizontal .novel-item.compact .cover-wrap {
    flex-basis: 19%;
    height: 100%;
}

#typepage .novel-list.horizontal .novel-item.compact .cover-wrap a {
    height: 100%;
}

#typepage .novel-list.horizontal .novel-item.compact .cover-wrap .novel-cover {
    padding-top: 0;
    height: 100%;
}

#typepage .novel-list.horizontal .novel-item.compact .novel-stats>span {
    min-width: auto;
    margin-right: .5rem;
}

#typepage .novel-list.horizontal .novel-item .cover-wrap {
    width: 19.8%;
}

#typepage .actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 20px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

#typepage .paging {
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    -ms-flex-negative: 1;
    flex-shrink: 1;
    margin-top: 20px;
}

#typepage .paging .pagination {
    justify-content: flex-start;
}

#typepage .sortitem {
    display: block;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

#typepage .sortitem a {
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
    position: relative;
    padding-bottom: 6px;
    padding: 5px 10px;
    color: var(--anchor-color);
    border: 1px solid var(--bg-color-secondary-2);
    border-radius: 0 6px;
}

#typepage .sortitem a:hover,
#typepage .sortitem a.selected {
    color: #e7e7e7;
    background-color: var(--bg-color-secondary-2);
}

#typepage .sortitem a+a {
    margin-left: 10px;
}

#browsetags .tags-wrapper ul.proplist {
    --gap: 10px;
    margin: calc(-1*var(--gap)) 0 0 calc(-1*var(--gap));
    width: calc(100% + var(--gap));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

#browsetags .tags-wrapper ul.proplist li {
    margin: var(--gap) 0 0 var(--gap);
    border: 1px dashed var(--bg-color-secondary-3);
    padding: 0 .4rem;
    line-height: 1.5;
    border-radius: 8px;
    background-color: var(--bg-color-secondary);
    font-size: .8rem;
    font-weight: 400;
}

#browsetags .tag-letters {
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 13px;
}

#browsetags .tag-letters::-webkit-scrollbar {
    height: 10px;
}

#browsetags .tag-letters::-webkit-scrollbar-track {
    background: var(--bg-color-4);
}

#browsetags .tag-letters::-webkit-scrollbar-thumb {
    background-color: var(--bg-color-secondary-4);
    box-shadow: inset 2px 2px 4px 0 rgba(135, 135, 135, .4);
    border-radius: 10px;
}

#browsetags .tag-letters::-webkit-scrollbar-thumb:hover {
    background: var(--bg-color-secondary-2);
}

#browsetags .tag-letters a {
    font-size: 1.2rem;
    padding: .25rem .5rem;
    vertical-align: middle;
    color: var(--text-color-2);
    font-weight: 600;
}

#browsetags .tag-letters a.active {
    color: var(--anchor-color);
    border-bottom: 2px solid var(--anchor-color);
}

#browsetags .browse-tags .tag-items {
    display: flex;
    flex-wrap: wrap;
    margin-left: -16px;
}

#browsetags .browse-tags .tag-items li {
    width: calc(50% - 16px);
    margin-left: 16px;
    margin-bottom: 16px;
}

#browsetags .browse-tags .tag-items a {
    font-size: .825rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

#browsetags .browse-tags .paging {
    margin-top: 2rem;
}

#browsetags .browse-tags .paging .pagination {
    justify-content: center !important;
}

@media screen and (min-width:768px) {
    #explore {
        background-color: var(--bg-color);
        padding-top: 0;
    }

    #explore .container {
        background-color: var(--bg-color-2);
        padding: 26px;
    }

    #explore header {
        justify-content: space-between;
        align-items: flex-start;
    }

    #explore header h1 {
        font-size: 24px;
        font-weight: 600;
    }

    #explore .novel-list.horizontal .novel-item .cover-wrap {
        width: 22%;
    }

    #explore .action-panel .title {
        font-size: 20px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    #explore .action-panel .action-list {
        width: 100%;
    }

    #explore .action-panel .action-list li {
        margin-right: 13px;
        margin-bottom: 13px;
    }

    #explore .action-panel .action-list li a {
        font-size: 16px;
    }

    #explore .action-panel .scroll-wrapper {
        overflow-x: hidden;
        margin-bottom: 13px;
    }

    #explore .action-panel .filters {
        flex-direction: row;
    }

    #explore .action-panel .filters .filter-item+.filter-item {
        margin-left: 26px;
    }

    #explore .tags-wrapper ul.proplist li a {
        font-size: 16px;
    }

    #latest-updates,
    #typepage,
    #browsetags {
        background-color: var(--bg-color);
        padding: 0;
    }

    #latest-updates .container,
    #typepage .container,
    #browsetags .container {
        padding: 26px;
        background-color: var(--bg-color-2);
    }

    #typepage {
        min-height: calc(100vh - 94px - 160px);
    }

    #typepage .novel-list.horizontal .novel-item .cover-wrap {
        width: 22%;
    }

    #typepage .novel-list.horizontal .novel-item.compact {
        height: 6.8rem;
    }

    #typepage .novel-list.horizontal .novel-item.compact+.novel-item {
        padding-top: 20px;
        height: calc(6.8rem + 20px);
    }

    #typepage .novel-list.horizontal .novel-item.compact .item-body .novel-title {
        font-size: 16px;
    }

    #typepage .novel-list.horizontal .novel-item.compact .cover-wrap {
        flex-basis: 10%;
    }

    #typepage .actions {
        flex-direction: row;
    }

    #typepage .paging {
        margin-top: 0;
    }

    #browsetags .tags-wrapper ul.proplist li {
        padding: 0 10px;
        line-height: 26px;
    }

    #browsetags .tags-wrapper ul.proplist li a {
        font-size: 16px;
    }

    #browsetags .browse-tags .tag-items {
        grid-template-columns: repeat(3, 1fr);
    }

    #browsetags .browse-tags .tag-items a {
        font-size: 1.2rem;
    }

    #browsetags .browse-tags .paging {
        margin-top: 2rem;
    }

    #browsetags .browse-tags .paging .pagination {
        justify-content: center !important;
    }
}

@media screen and (min-width:1024px) {

    #explore,
    #typepage {
        min-height: calc(100vh - 94px - 180px);
    }

    #explore .novel-list.horizontal .novel-item .cover-wrap,
    #typepage .novel-list.horizontal .novel-item .cover-wrap {
        width: 17%;
    }

    #explore .novel-list.horizontal .novel-item.compact .cover-wrap,
    #typepage .novel-list.horizontal .novel-item.compact .cover-wrap {
        flex-basis: 8%;
    }
}