/* 共用 */
.pagination-dark >li>a , .pagination-dark >li>a>span ,
.pagination-dark>.disabled>span{
    color: #d8d8d8;
    background-color: #333;
}

.footer-dark {
    background-color: #333;
}


/* 分類頁 */
.btnmg>li.new {
    position: relative;
}

.btnmg>li.new b,
.text-dark>a>small {
    position: absolute;
    background-color: #ff0000;
    border-radius: 5px;
    padding: 0 2px;
    color: #fff;
    transform: rotate(-20deg);
    top: -6px;
    left: 0px;
}

/* 標籤顏色 */
.tag-patreon{
    background-color: #c53e2c;
}

.tag-fanbox{
    background-color: #59bde8;
}

.tag-fantia{
    background-color: #3f751c;
}

.tag-boosty{
    background-color: #b27d0a;
}

.tag-dlsite{
    background-color: #0f1883;
}

.tag-gumroad{
    background-color: #ff90e8;
}

.tag-subscribestar{
    background-color: #56b8ae;
}

.tag-h2h{
    background-color: #FABD00;
}



/* 首頁 */

.tabs-grid>li {
    padding: 0;
}

.tabs-grid>li>a {
    padding: 10px 0;
    text-align: center;
}

.tabs-grid span.new-label {
    position: absolute;
    inset: 22px 0 0 0;
    color: #f00;
}

.tabs-grid>li.active span.new-label {
    color: #fff;
}

/* 書庫-創作者 */
.breadcrumb.library {
    background-color: transparent;
}

.breadcrumb.library>li+li:before {
    color: #888;
}

.library-search-bar .input-group {
    display: flex;
    justify-content: center;
}

.library-search-bar .input-group select,
.library-search-bar .input-group input {
    padding: 8px;
    outline: none;
    border: none !important;
    background-color: #fff;
    box-shadow: none;
}

.library-search-bar .input-group input {
    border-radius: 0px 20px 20px 0;
    width: 50%;
    margin-right: 10px;
}

.library-search-bar .input-group select {
    border-radius: 20px 0 0 20px;
}

.library-search-bar .input-group button.search-btn {
    background-color: #ff8718;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    color: white;
}


.library-tab {
    margin: 0 20px 15px 20px;
    background-color: #fff;
}

.library-tab li {
    padding: 10px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

.library-tab li.active {
    border-bottom: #ff7700 5px solid;
    color: #ff7700;
    font-weight: 700;
}


.library-main {
    padding: 0 15px;
}

.library-main>div.fit-box {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
}

.library-main>div.fit-box>div {
    height: 120px;
    background-color: #000000;
}

.library-main .author {
    position: absolute;
    z-index: 1;
    width: 98%;
    padding: 10px 25px;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 120px;
    flex-wrap: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.library-main .author>.pic {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    background-color: #000;
    border-radius: 6px
}

.library-main .author>.info {
    width: calc(100% - 115px);
}

.library-main .author>.info p {
    font-size: 26px;
    font-weight: bold;
    color: #ff7700;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    overflow: hidden;
}

.library-main .author>.info small {
    color: #aaa;
}

a.author .pic.bg-none {
    border: 1px solid #888;
}

.library-main .bg-object-fit {
    object-fit: cover;
    position: inherit;
    width: 100%;
    height: 100%;
    filter: brightness(0.3);
}

@media (max-width: 760px) {
    .library-tab {
        margin: 0 0px 15px 0px;
    }

    .library-search-bar .input-group input {
        width: 70%;
    }

    .library-main {
        padding: 0;
    }

    .library-main>div.fit-box {
        padding-left: 0px;
        padding-right: 0px;
        margin-bottom: 5px;

    }
}

/* 書庫-作品 */

form.library-select {
    display: flex;
}

form.library-select>.form-group {
    display: flex;
    align-items: center;
}

form.library-select>.form-group label.text-white {
    color: #fff;
}

form.library-select>.form-group label {
    width: 50px;
    margin-bottom: 0;
    text-align: end;
    padding-right: 5px;
    text-align: center;
}

form.library-select>.form-group+.form-group {
    margin-left: 10px;
}

.library-main .post-card {
    position: relative;
    margin-bottom: 10px;
}

.library-main .post-card>a.pic-box {
    width: 100%;
    padding-top: 100%;
    display: block;
    position: relative;
}

.library-main .post-card>.pic-box>.ratio {
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}


.library-main .post-card>.pic-box>.ratio img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.library-main .post-card>.pic-text {
    background-color: #fff;
    padding: 10px;
}

.library-main .post-card>.pic-text .title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-main .post-card>.pic-text .gamelib_name_block a{
    text-decoration: underline;
}

@media (max-width:414px) {
    form.library-select {
        margin: 0 -15px;
    }

    form.library-select div:nth-child(2) {
        flex-grow: 1;
    }
}

/* 創作者作品頁 */
.author-header {
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.7);
    max-width: 720px;
    margin-bottom: 20px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.author-header .pic-box {
    width: 30%;
    max-width: 160px;
    min-width: 105px;
    margin-right: 15px;
}

.author-header .pic-box>div {
    width: 100%;
    padding-top: 100%;
    display: block;
    position: relative;
    background-color: #000;
}

.author-header .pic-box>div>picture {
    inset: 0;
    position: absolute;
}

.author-header .info-box {
    width: auto;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    flex-grow: 1;
}

.author-header .info-box a {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.author-header .info-box p {
    margin-bottom: 0;
    font-size: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-header .info-box>.select {
    height: 38px;
}

.author-header .info-box>.select .form-group {
    margin-bottom: 0;
}

.author-header .bg-object-fit {
    position: absolute;
    z-index: -1;
    object-fit: cover;
    width: 100%;
    height: 100%;
    inset: 0;
}

@media (max-width:576px) {
    .author-header {
        padding: 15px;
        border-radius: 0;
    }

    .author-header>.d-flex {
        margin-bottom: 10px;
    }

    .author-header>.visible-xs {
        margin: 0px;
        padding: 0 15px;
    }

    .author-header>.visible-xs>.library-select>.form-group {
        margin: 0px;
    }

    .author-header .pic-box>div.pic {
        border-radius: 10px;
    }

    .author-header .pic-box>div>picture img {
        border-radius: 10px;
    }
}

/* 作品頁 */
.library-works {
    background-color: #d7d7d7;
    padding: 25px;
}

.library-works time {
    color: #8d8d8d;
}

.library-works h1 {
    font-weight: bold;
}

.library-works .center>span {
    max-width: 50%;
    display: inline-block;
}

.library-works .center span img {
    object-fit: scale-down;
}

.related-post-card {
    background-color: #fff;
    position: relative;
}

.related-post-card .pic-box {
    display: block;
    width: 100%;
    padding-top: 100%;
    position: relative;

}

.related-post-card .pic-box .ratio {
    inset: 0;
    position: absolute;
    background-color: #000000;
}

.related-post-card .pic-box .ratio img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.related-post-card .pic-text {
    padding: 10px;
    color: #000;
}

.related-post-card .pic-text span {
    color: #808080;
}

.related-post-card .pic-text>.title {
    height: 4rem;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.owl-related-works {
    padding-left: 0;
}

.breadcrumb-fixed {
    background-color: #000;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 9;
    padding: 0 15px;
}

.breadcrumb-fixed>a {
    float: left;
    line-height: 36px;
    vertical-align: middle;
    padding-right: 15px;
    border-right: 1px solid #5b5b5b;
    margin-right: 10px;
}

.breadcrumb-fixed .breadcrumb {
    margin-left: 10px;
}

.breadcrumb-fixed .breadcrumb li,
.breadcrumb-fixed .breadcrumb li a {
    color: #a6a6a6;
}

.breadcrumb-fixed .library .breadcrumb-item.active {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    width: calc(100% - 228px)
}



@media (max-width:1024px) {
    body.padding-give {
        padding-top: 36px;
    }

    .author-header.works {
        margin-bottom: 5px;
    }

    .library-works {
        padding: 5px;
        background-color: transparent;
    }

    .author-header.works .pic-box {
        min-width: 80px;
    }

    .author-header.works .info-box {
        padding: 0;
    }

    .author-header.works .info-box a p {
        font-size: 24px;
    }

    .library-works .center {
        margin: 0 -5px 5px -5px;
    }

    .library-works .center>span {
        max-width: 100%;
    }

    .author-header.works>.d-flex {
        margin-bottom: 0;
    }

    .related-post-card .pic-text {
        padding: 5px;
    }
    .library-works .center span img {
        object-fit: fill;
    }

}

@media (min-width: 768px) {
    .container .library-works span {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .container .library-works span {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .container .library-works span {
        width: 1170px;
    }
}