.header {
    display: block;
    position: fixed;
    width: 100vw;
    left: 0;
    background: #fff;
    height: 73px;
    margin: 0;
    max-width: initial;
}

.header .container {
    margin: 0 auto;
    padding-inline: 15px;
}

.menu-bg {
    background: #fff;
    max-height: 90px;
}

.new-menu-wrapper{
    height: 100%;
    display: flex;
    align-items: center;
    height: 73px;
}

.new-top-menu {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #9b9b9b;
    width: 100%;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-top-menu .nav {
    /*flex: 1;*/
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.new-top-menu .lang-container {
    font-family: 'Roboto', sans-serif;
    display: flex;
    margin: 0;
    align-items: center;
    font-size: 14px;
    margin-left: 8px;
    font-weight: bold;
    color: #000;
}

.new-top-menu .lang-container .lang {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

.new-top-menu a {
    font-family: 'Roboto', sans-serif;
    font-size: 4vw;
    color: #9b9b9b;
    padding: 0 12px;
    font-weight: bold;
}

.new-top-menu a.link-logo{
    color: #000;
    font-size: 20px;
    padding-left: 0;
}

@media (min-width: 768px) {
    .new-top-menu a {
        font-size: 28px;
    }
}

@media (min-width: 993px) {
    .new-top-menu a {
        font-size: 18px;
    }
}

.new-top-menu .logo {
    width: 121px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.new-top-menu .logo a {
    font-size: 16px;
    display: block;
    inset: 0;
}

@media (min-width: 768px) {
    .new-top-menu .logo {
        width: 145px;
    }
}

.new-top-menu .logo img {
    max-width: 100%;
    max-height: 100%;
}

.new-top-menu .nav a {
    cursor: pointer;
    display: none;

}

.new-top-menu .nav a.link-logo {
    display: block;
}

.new-top-menu .nav a:hover {
    color: #000;
    text-decoration: none;
}

.new-top-menu .nav a:focus {
    text-decoration: none;
}

.new-top-menu .nav a.active {
    color: #810958;
    color: black;
}

.new-top-menu .nav .dropdown {
    position: relative;
    display: inline-block;
}

.new-top-menu .nav .dropdown-content {
    display: none;
    position: absolute;
    left: -12px;
    background-color: #fff;
    width: max-content;
    padding: 15px 25px;
    z-index: 1;
    flex-direction: column;
}

.new-top-menu .nav .dropdown-content .dropdown-item {
    display: block;
    padding: 5px 0;
}

.new-top-menu .nav .dropdown-content .dropdown-item:hover {
}

.new-top-menu .nav .dropdown:hover .dropdown-content{
    display: flex;
}

.icon-burger div {
    width: 20px;
    height: 2px;
    background-color: #727272;
    margin: 4px 0;
    margin-left: 12px;
}
.icon-burger {
    display: block;
}
@media (min-width: 993px) {
    .icon-burger {
        display: none;
    }
}

.mobile-nav {
    position: fixed;
    overflow-y: auto;
    top: 72px;
    left: 0;
    display: none;
    width: 100%;
    height: calc(100vh - 72px);
    background: rgba(0, 0, 0, 0.7);
    z-index: 5000;
}

.mobile-nav .mobile-menu-item {
    text-align: center;
    padding: 10px 20px;
    font-size: 4vw;
    background: #f8f5f5;
}

.mobile-nav {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
}

.mobile-nav::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}

.mobile-nav .dropdown {
    position: relative;
    padding: 0;
}

.mobile-nav .dropdown .dropdown-toggle {
    width: 100%;
    height: 100%;
    display: block;
    padding: 10px 20px;
    position: relative;
}

.mobile-nav .dropdown .dropdown-toggle::after {
    position: absolute;
    content: ' ';
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    right: 10px;
    background: url('../../images/arrow-down.svg') no-repeat center / cover;
    transition: all .5s ease;
}

.mobile-nav .dropdown .dropdown-toggle.content-visible::after {
    transform: rotate(180deg);
}

.mobile-nav .dropdown-content {
    display: none;
    width: 100%;
    z-index: 1;
    flex-direction: column;
    border-bottom: 1px solid #cecece;
}

.mobile-nav .dropdown.visible .dropdown-content {
    display: flex;
}

.mobile-nav .dropdown-content .dropdown-item {
    display: block;
}

.dropdown-item.disabled {
    cursor: default !important;
    color: #000 !important;
}

.dropdown-item.disabled:hover {
    text-decoration: none;
    color: #000;
}

@media (min-width: 768px) {
    .mobile-nav .mobile-menu-item {
        font-size: 28px;
    }

    .mobile-nav .mobile-menu-item.dropdown .dropdown-toggle {
        padding: 10px 20px;
    }
}

@media (min-width: 993px) {
    .new-top-menu .nav a {
        display: inline;
    }

    .mobile-center {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }

    .mobile-nav .mobile-menu-item {
        display: none;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px !important;
    }
}

.bg-grey {
    background: #f8f5f5;
}

.overflowing-bg {
    width: 100vw;
}

@media (min-width: 1400px) {
    .overflowing-bg {
        max-width: 1920px;
        width: 1920px;
    }
}

#vip {
    top: 73px;
    left: 0;
    width: 100%;
}

@media (min-width: 768px) {
    #vip {
        top: 73px;
        left: 0;
        width: 100%;
    }
}

@media (min-width: 1400px) {
    #vip {
        /*left: 50vw;*/
        /*transform: translateX(-50%);*/
        width: 100%;
    }
}

/*@media (min-width: 1920px) {*/
/*    #vip {*/
/*        left: -80px !important;*/
/*        width: 100%;*/
/*    }*/
/*}*/

.site-index {
    margin-top: 0;
}
@media (min-width: 768px) {
    .site-index {
        margin-top: 73px;
    }
}

.site-index.hide-banner #main-idem {
    padding-top: 20px;
    padding-bottom: 160px;
}
#main-idem h2{
    padding-inline: 15px;
}
@media (min-width: 768px) {
    .site-index.hide-banner #main-idem {
        padding-bottom: 0;
    }
}

.main-list-box {
    overflow: hidden;
}
.site-index.hide-banner .main-list-box #main-idem {
    width: 97%;
    margin: auto;
}
/* .site-index .main-list-box #main-idem::after {
    display: block;
    content: '';
    width: 100%;
    height: 15px;
    background-color: rgba(89, 131, 252, 0);
    background-image: linear-gradient(180deg, rgba(89, 131, 252, 0) 0%, rgba(255, 255, 255, 1) 100%);
    bottom: 0px;
    position: absolute;
}
.site-index.hide-banner .main-list-box #main-idem::after {
    display: none;
} */

/* width */
::-webkit-scrollbar {
width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1; 
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555; 
}

#persons .list-box {
    padding-bottom: 200px;
    padding-right: 10px;
}

#idemBox {
    display: none;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    #persons .list-box {
        padding-top: 20px;
    }

    .list-item-box {
        padding: 0 15px;
    }

    .main-list-box.showed.show-why {
        height: auto !important;
    }
}

@media (min-width: 993px) {
    .main-list-box.showed .chapters-box {
        min-height: calc(100vh - 100px);
    }
}

.popup-tabs {
    top: 73px;
    z-index: 8;
}

.search-type,
.close-type {
    margin-left: 10px;
    width: 20px;
    display: flex;
    align-items: center;
}
@media (min-width: 768px) {
    .search-type,
    .close-type {
        display: none !important;
    }
}
#carousel-box.owl-carousel .owl-stage-outer {
    transition: none !important;
    /* height: unset; */
}

.popup-content {
    padding-bottom: 150px;
}

/* owl custom styles */
.custom-transition .owl-stage {
    transition: all 0.375s ease 0s !important;
}

.list-item-box:hover h3 {
    color: black;
}
.list-item-box.active h3 {
    color: #810958;
}

@media (min-width: 993px) {
    .list-item-box:hover h3 {
        color: #810958;
    }
}
@media (max-width: 767px) {
    .search-bar-mob {
        margin-bottom: 20px;
    }
}

.search-settings .search-nav-mob,
.search-settings .select-filter,
.search-settings .search-nav-mob span {
    font-size: 18px;
    text-align: left;
    font-family: 'Roboto Medium', sans-serif;
}

.d-none {
    display: none;
}
@media (max-width: 768px) {

    #persons .search-settings {
        justify-content: flex-end;
        background: #f8f2f2;
        margin: 0;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .search-settings {
        display: none !important;
        padding-inline: 15px;
    }
}

.popup-tabs[data-pop='search'] .search-results {
    max-height: calc(100vh - 70px - 180px);
}

input {
    margin-left: 0px;
}

.search-bar-mob {
    margin-left: 0px;
}

.search-bar {
    padding-left: 5px;
}

@media (min-width: 768px) and (max-width: 1399px) {
    .search-bar {
        margin-left: 45px;
    }
}

@media (min-width: 1400px) {
    .search-bar {
        margin-left: calc(50% - 645px);
    }
}

@media (min-width: 1920px) {
    .search-bar {
        margin-left: 315px;
    }
}

@media (max-width: 767px) {
    #books .list-box,
    #persons .list-box {
        max-height: calc(100vh - 185px - 65px);
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .persons {
        margin-left: 35px;
        width: calc(50% - 35px);
    }
}
@media (min-width: 993px) and (max-width: 1399px) {
    .persons {
        margin-left: 35px;
        width: calc(41.66666667% - 35px);
    }
}

.title-group h2 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.list-item-box svg {
    position: static;
}

#videoBox{
    background: #000;
    width: 100%;
    height: 100%;
    display: none;
    padding: 0 !important;
    position: absolute;
    inset: 0;
    z-index: 999999
}

#videoBox .video-container {
    height: 100%;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 993px){
    #videoBox .video-container {
        padding: 30px;
    }
}

#videoBox .video-container video{
    max-width: 100%;
    max-height: 100%;
}

#videoBox .controls{
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

@media (min-width: 993px){
    #videoBox .controls{
        right: 85px;
        gap: 15px;
    }
}

#videoBox .controls p{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    cursor: pointer;
    margin: 0;
}

#videoBox .controls p:hover {
    opacity: 0.9;
    color: #fff;
}

#videoBox .controls p span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #fff;
}

#videoBox .controls p.current span {
    background: #e0351e;
    color: #e0351e;
}

#videoBox .fancybox-button {
    background: rgba(30,30,30,.6);
    color: #fff;
}

#videoBox .videobox-close {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(30,30,30,.6);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    height: 44px;
    margin: 0;
    padding: 10px;
    transition: color .2s;
    vertical-align: top;
    visibility: inherit;
    width: 44px;
}

#videoBox .videobox-close svg{
    display: block;
    height: 100%;
    overflow: visible;
    position: relative;
    width: 100%;
}

#videoBox .videobox-close svg {
    fill: currentColor;
    stroke-width: 0;
}

.scene-info.current .scene-bind,
.book-bind.active {
    color: rgba(129, 9, 88, 0.60) !important;
}

.scene-info.current .desc-bind,
.aut-bind.active,
.book-bind.active + .aut-bind{
    color: rgba(129, 9, 88, 1) !important;
}

.search-bar .select-filter,
.search-settings .select-filter{
    margin-right: 20px;
    padding-right: 0;
    font-size: 16px;
}

.search-bar .select-filter,
.search-settings .select-filter,
.search-bar .select-filter span,
.search-settings .select-filter span {
    color: #bbb;
}

.search-bar .select-filter:hover,
.search-settings .select-filter:hover{
    color: #000 !important;
    text-decoration: none;
}

.search-bar .select-filter:focus,
.search-settings .select-filter:focus{
    color: #bbb;
    text-decoration: none;
}

.search-bar .select-filter.active,
.search-settings .select-filter.active {
    color: #292929;
    font-weight: 700;
}

.search-bar .select-filter.active,
.search-settings .select-filter.active,
.search-bar .select-filter.active span,
.search-settings .select-filter.active span{
    color: #292929;
    font-weight: 700;
}

.search-bar .select-filter.active:focus,
.search-settings .select-filter.active:focus{
    color: #292929;
    text-decoration: none;
}

.search-settings .search-nav-mob:first-of-type{
    margin-right: 20px;
}

a.search-nav:hover,
a.sort-nav:hover {
    color: #000000;
}

/*#idemBox::before,*/
/*#idemBox::after {*/
/*    content: ' ';*/
/*    position: absolute;*/
/*    width: 100%;*/
/*    height: 20px;*/
/*    left: 0;*/
/*    z-index: 5;*/
/*}*/

/*#idemBox::before{*/
/*    top: 0;*/
/*    background: linear-gradient(to bottom, #fff, transparent);*/
/*}*/

/*#idemBox::after{*/
/*    bottom: 20px;*/
/*    background: linear-gradient(to top, #fff, transparent);*/
/*}*/

@media (min-width: 993px) {
    #idemBox {
        width: 330px;
        height: 374px;
        max-height: 412px;
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 40px 20px 0;
        float: right;
        position: relative;
        /*scroll-snap-type: y mandatory;*/
    }

    #idemBox .inner {
        height: 100%;
    }
}

@media (min-width: 1150px) {
    #idemBox {
        width: 380px;
    }
}

.idem {
    max-height: 336px;
    overflow: hidden;
    padding-top: 20px;
    margin-bottom: 40px;
    /*scroll-snap-align: start;*/
}

.idem a:hover {
    text-decoration: none;
}

.idem a:hover .title {
    text-decoration: underline;
}

.idem a img {
    max-width: 100%;
}

.idem .info .title {
    color: rgb(63, 63, 63);
    font-family: "Roboto Medium", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 19px;
    margin: 0;
    padding: 9.5px 0;
    user-select: none;
    white-space-collapse: collapse;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    letter-spacing: -0.2px;
}

.idem .info .date {
    color: #777;
    font-size: 12px;
    margin-bottom: 7px;
    line-height: 12px;
}

.idem .info .excerpt {
    max-height: 95px;
    overflow: hidden;
}

.idem .info .excerpt * {
    font-size: 15px;
    line-height: 19px;
    font-family: "Roboto Regular", sans-serif;
    color: rgb(63, 63, 63);
    margin: 0;
    padding: 0;
    letter-spacing: -0.2px;
}

#persons .list-box .idem-heading {
    font-family: 'Roboto Medium', sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #000;
    margin: 20px 0 0;
    padding: 15px 0 0 15px;
    background: #cecece;
}

#persons .list-box .idem {
    margin-bottom: 20px;
    max-height: unset;
    padding: 20px 15px;
    overflow-x: visible;
    position: relative;
    background: #cecece;
}

#persons .list-box .idem .title{
    color: #000;
}

#persons .list-box .idem .excerpt {
    max-height: unset;
}

@media (min-width: 768px) {
    #persons .list-box .idem {
        background: none;
        padding-inline: 15px;
    }

    #persons .list-box .idem-heading {
        background: none;
        margin: 0;
    }
}

@media (min-width: 993px) {
    #persons .list-box .idem,
    #persons .list-box .idem-heading{
        display: none;
    }

    #persons .list-box.additional-padding {
        padding-right: 10px;
    }
}

.owl-item.active.center:has(.item-box-scenes)::before {
    content: ' ';
    background: rgba(242, 242, 242, 0.95) url('../../images/play-button.svg') no-repeat 17px center;
    background-size: 20px 20px;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    left: calc(50% - 25px);
    z-index: 5;
    border-radius: 50%;
    transition: opacity .3s;
    cursor: pointer;
}

.owl-item.active.center:has(.item-box-scenes):hover::before{
    opacity: 0.9;
}