body {
    height: 100vh;
    background-color: var(--body-color);
}

.button-primary {
    color: #fff;
    background-color: var(--color-primary);
}

.containered {
    margin: 0 auto;
    max-width: 1000px;
}

.wrap-box {
    width: 100%;
    border: 1px solid #eee;
    background-color: #fff;
}

.not-found {
    padding: 80px 0;
    text-align: center;
    color: #999;
}


footer {
    margin-top: 8px;
    padding: 20px 20px 20px 10px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    color: #333;
}

footer .logo {
    color: #ccc;
    font-size: 28px;
    display: flex;
    align-items: center;
}


footer .logo img {
    width: 140px;
    filter: grayscale(100%);
    opacity: 0.5;
}


footer .at-counter {

}


footer .at-counter .count-item {
    margin: 10px 16px 0 0;
    font-size: 16px;
}


footer .at-counter .count-item .label {
    color: #999;
}



.wrap-box .header {
    padding: 0 16px;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.wrap-box .header .title {
    font-size: 18px;
    font-weight: 600;
}

.wrap-box .header .subtitle {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #999;
}

.wrap-box .header .right a {
    margin-left: 8px;
    padding: 4px 16px;
    display: block;
    text-align: center;
    border-radius: 8px;
    background-color: var(--body-color);
}

.wrap-box .header .right .more {
    font-size: 12px;
    color: #666;
    background-color: unset;
}

.wrap-box .content {
    padding: 16px 8px;
    position: relative;
}


.box-search-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-search-bar i {
    position: absolute;
    right: 8px;
}

.box-search-bar input[type=search] {
    padding: 0 16px;
    width: 100%;
    height: 36px;
    border-radius: 18px;
    background-color: #f6f6f6;
}

.box-search-bar input[type=search]:focus {
    padding: 0 16px;
}


.porn-categories {
    overflow-x: auto;
    scrollbar-width: none;
}

.porn-categories::-webkit-scrollbar {
    display: none;
}

.porn-categories ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
}

.porn-categories ul li a {
    margin: 0 4px 8px 4px;
    background-color: #f6f6f6;
    padding: 6px 16px;
    display: block;
    border-radius: 8px;
    word-break: break-word;
    white-space: nowrap;
    color: #666;
}

.porn-categories ul li.active a {
    background-color: var(--color-primary);
    color: #fff;
}




.porn-with-grid-list {
    margin: 0 auto;
    display: grid;
    justify-content: center;

    grid-template-columns: repeat(auto-fill, 20%);
    justify-content: center;
    justify-items: center;
}

.porn-with-grid-list .porn-grid-item {
    width: 90%;
    margin: 8px 0px;
    padding: 8px;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px #ddd;
}

.porn-with-grid-list .porn-grid-item .thumbnail {
    margin: 0 auto;
    width: 100%;
    padding-bottom: 144%;
    background-position: center;
    background-size: cover;
    background-color: #f6f6f6;
    border-radius: 8px;
}

.porn-with-grid-list .title {
    margin: 8px 0;
    padding: 0 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.porn-with-grid-list .option {
    padding: 0 4px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    color: #999;
}



.porn-list {
    width: 100%;
}

.porn-list .porn-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 8px;
    padding: 8px;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px #ddd;
}

.porn-list .title {
    margin: 8px 0;
    padding: 0 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}


.porn-list .option {
    width: 100px;
    padding: 0 4px;
    font-size: 12px;
    color: #999;
    text-align: right;
}

@media (min-width: 1px) and (max-width: 480px) {

}



.porn-content img{
    width: 100%;
    display: block;
    vertical-align: top;
}

.porn-video-source-list {
    width: 100%;
    display: inline-grid;
    grid-template-columns: 33.333333% 33.333333% 33.333333%;
}

.porn-video-source-list .source-item {
    margin: 8px;
    padding: 8px 0;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--button-bg-color);
}

.porn-video-source-list .source-item.active {
    font-weight: bold;
    color: #fff;
    background-color: var(--color-primary);
}

.porn-float-navbar {
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    bottom: 10px;
    font-size: 0;
}

.porn-float-navbar ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 25px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
}

.porn-float-navbar ul li {
    width: 70px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}






.eobso-list {
    margin: 0 auto;
    display: grid;
    justify-content: center;

    grid-template-columns: repeat(auto-fill, 20%);
    justify-content: center;
    justify-items: center;
}

.eobso-list .porn-grid-item {
    width: 90%;
    margin: 8px 0px;
    padding: 8px;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px #ddd;
}

.eobso-list .porn-grid-item .thumbnail {
    margin: 0 auto;
    width: 100%;
    padding-bottom: 100%;
    background-position: center;
    background-size: cover;
    background-color: #f6f6f6;
    border-radius: 8px;
}

.eobso-list .title {
    margin: 8px 0;
    padding: 0 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
}

.eobso-list .option {
    padding: 0 4px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    color: #999;
}

.eobso-content img{
    width: 100%;
    display: block;
    vertical-align: top;
}

.float-call-button {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 10px #666;
}



/**
    navigation style
 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background-color: var(--ag-menu-bg-color);
    z-index: 100;
}

.menu-backdrop.show {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 101;
}

nav .nav-bar {
    position: relative;
    height: 100%;
    max-width: 1000px;
    width: 100%;
    background-color: var(--ag-menu-bg-color);
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .nav-bar .sidebarOpen {
    color: var(--menu-slide-icon-color);
    font-size: 24px;
    padding: 5px;
    cursor: pointer;
    display: none;
}

nav .nav-bar .logo a {
    position: relative;
    font-size: 25px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: center;
    justify-items: center;
}

nav .nav-bar .logo img {
    height: 50px;
}

.menu .logo-toggle {
    display: none;
}

.nav-bar .nav-links {
    display: flex;
    align-items: center;
}

.nav-bar .nav-links li{
    margin: 0 5px;
    list-style: none;
}

.nav-links li {
    position: relative;
    font-size: 17px;
    font-weight: 700;
    color: var(--menu-text-color);
    text-decoration: none;
    padding: 10px;
}

.nav-links li.active {
    color: var(--menu-active-text-color);
}

.nav-links li a::before {
    content: '';
    position: absolute;
    left: 48%;
    bottom: 0;
    transform-origin: center bottom;
    transform-origin: center bottom;
    -ms-transform-origin: center bottom; /* IE 9 */
    -webkit-transform-origin: center bottom; /* Safari and Chrome */
    -moz-transform-origin: center bottom; /* Firefox */
    -o-transform-origin: center bottom; /* Opera */
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: var(--menu-active-text-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links li.active a::before {
    opacity: 1;
    background-color: var(--menu-active-text-color);
}

.nav-links li:hover a::before {
    opacity: 1;
}

.nav-bar .tool-box {
    display: flex;
    align-items: center;
}

.nav-bar .tool-box .dark-light {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.nav-bar .tool-box .dark-light i{
    position: absolute;
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-bar .tool-box .dark-light i.sun {
    opacity: 0;
    pointer-events: none;
}

.nav-bar .tool-box .dark-light.active i.sun {
    opacity: 1;
    pointer-events: auto;
}

.nav-bar .tool-box .dark-light.active i.moon {
    opacity: 0;
    pointer-events: none;
}


@media (min-width: 769px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }

    nav {
        height: 50px;
    }

    nav .nav-bar {
        padding: 0 10px;
    }

    nav .nav-bar .sidebarOpen {
        display: block;
        font-size: 30px;
    }

    .menu {
        position: fixed;
        height: 100%;
        width: 100%;
        left: -100%;
        top: 0;
        padding: 20px;
        background-color: var(--menu-slide-bg-color);
        z-index: 102;
        transition: all 0.4s ease;
    }

    nav.active .menu {
        left: -0%;
    }

    nav .nav-bar .logo img {
        height: 40px;
    }

    .menu .logo-toggle {
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    nav .nav-bar .logo a {
        font-size: 20px;
    }

    .menu .logo-toggle .sidebarClose {
        color: var(--menu-slide-icon-color);
        font-size: 24px;
        cursor: pointer;
    }

    .nav-bar .nav-links {
        flex-direction: column;
        padding-top: 30px;
    }

    .nav-bar .nav-links a {
        display: block;
        margin-top: 10px;
    }
}





/**
    pagination style
 */
.pagination {
    padding: 30px 0;
    display: flex;
    justify-content: center;
}
.pagination ul {
    padding: 0 8px;
    display: inline-flex;
    height: 50px;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    background-color: var(--pagination-bg-color);
    box-shadow: 0 0 15px var(--pagination-shadow-color);
}
.pagination ul li {
    margin: 0 4px;
    display: none;
    list-style: none;
    border-radius: 30px;
    line-height: 30px;
    background-color: var(--pagination-button-bg-color);
}
.pagination ul li a {
    display: block;
    padding: 0 16px;
    width: 100%;
    height: 30px;
    border-radius: 30px;
}
.pagination ul li a:hover {
    color: var(--pagination-button-active-text-color);
    background-color: var(--pagination-button-active-bg-color);
}
.pagination ul li.active {
    color: var(--pagination-button-active-text-color);
    background-color: var(--pagination-button-active-bg-color);
}
.pagination ul li.etc {
    padding: 0 16px;
}
.pagination ul li.disabled {
    height: 30px;
    padding: 0 16px;
    color: var(--pagination-button-disabled-text-color);
    background-color: var(--patination-button-disabled-bg-color);
    cursor: default;
}





/* episode list */
.episodes-list a {
    margin: 8px 0;
    padding: 4px;
    display: flex;
    justify-content: flex-start;
    border-radius: 8px;
    box-shadow: 0 0 5px #ddd;
}

.episodes-list a:first-child {
    margin: 0;
}


.episodes-list .thumbnail {
    width: 80px;
    height: 80px;
    background-position: center;
    background-size: cover;
    background-color: #f6f6f6;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}


.episodes-list .title {
    padding: 16px;
    display: flex;
    align-items: center;
    font-size: 14px;
    flex-shrink: 1;
}



.ally-list {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
}

.ally-list a {
    width: 20%;
    padding: 4px;
}

.ally-list a .thumbnail {
    width: 100%;
    padding-bottom: 50%;
    background-size: contain;
}

.ally-list a .title {
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}