:root {
    --secondary-color: #f90;
    --alert-color: #aa2727;
    --light-color: #fff;
    --dark-color: #000;
}
#films-header-custom {
    position: relative;
}

#films-header-custom #logo img {
    max-height: 40px;
    height: auto;
}
.is-video-post ~ .from_the_blog_excerpt,
.is-video-post ~ .is-divider {
    display: none;
}
/* ===============================
   CATFISH TOP ADS
================================ */

.catfish-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,.8);
    z-index: 999;
    text-align: center;
}

.banner-catfish-top {
    display: inline-flex;
    max-width: 50%;
    margin: auto;
    box-shadow: 0 0 5px #fff;
}

.banner-catfish-top img {
    width: 100%;
    height: auto;
}

.catfish-top-close {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0 10px;
    font-size: 16px;
    cursor: pointer;
    background: #2b2b2b;
    color: #dadada;
    border: 1px solid #dadada;
    border-radius: 50%;
}

#video {
    margin: 0 5px;
}
/* Base */
#video-list {
    width: 100%;
}

/* Grid layout */
#video-list.video-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr); /* fallback */
}

/* Dynamic columns */
#video-list.video-grid.cols-1 { grid-template-columns: repeat(1, 1fr); }
#video-list.video-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
#video-list.video-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
#video-list.video-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
#video-list.video-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
#video-list.video-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Reset item for Grid */
#video-list.video-grid .video-item {
    width: 100%;
    margin: 0;
    float: none;
}

/* Aspect ratio video */
#video-list .video-item > a {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

/* Image */
#video-list .video-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Full width elements inside grid */
/* Mặc định: các page khác – full width */
#video-list .related-videos-wrapper {
    grid-column: 1 / -1;
}
/* grid 4 cột nằm bên trong wrapper */
.single.single-post #video-list .related-videos-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ribbon {
    font-size: .9em;
    position: absolute;
    top: 0;
    border-left: 3px solid #ea4335;
    border-radius: 0 4px 4px 0;
    background: none repeat scroll 0 0 rgba(17,17,17,.6);
    padding: 2px 4px;
    margin-top: 2px;
    margin-left: 7px;
    color: #fff;
}
.video-name {
    margin-left: 5px;
    margin-right: 5px;
    margin-top:10px;
    font-size: 15px;
    height: 45px;
    max-height: 45px;
    line-height: 1.5;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    white-space: normal;
}
.video-name p {
    margin-top: 3px;
    height: 15px;
    overflow: hidden;
    margin-bottom: 3px;
}
.video-rank {
    font-size: .9em;
    position: absolute;
    top: 0;
    border-left: 3px solid #ea4335;
    border-radius: 0 4px 4px 0;
    background: none repeat scroll 0 0 rgba(17,17,17,.6);
    margin-top: 2px;
    padding: 2px 4px;
    margin-left: 7px;
    color: #fff;
}
.video-rank span {
    display: inline-flex;
}

.video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    }
.play-left {
    padding: 0 5px;
}
.play-right {
    position: relative;
    width: 325px;
    margin-top: 5px;
    float: right;
}
.video-right {
    display: block;
}
.video-right li {
    display: inline-flex;
    overflow: hidden;
    padding-bottom: 5px;
}
.video-right li a {
    color: #dadada;
    font-weight: 700;
}
.video-right li a:hover {
    color: #fff;
    font-weight: 700;
}
.video-right li img {
    float: left;
    margin-right: 5px;
    margin-bottom: 10px;
    width: 120px;
    height: 90px;
}
.video-right li a:hover {
    color: #fff;
    font-weight: 700;
}
.video-right li status {
    position: absolute;
    background-color: var(--primary-color);
    padding: 2px 5px;
    color: #fff;
    opacity: .8;
}
.video-content {
    display: block;
}
.video-description {
    display: block;
    padding: 5px 15px 15px 15px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    margin: 0px 0px 10px 0px;
    background-color: var(--primary-color);
    border-radius: 5px;
    color: #fff;
}
.video-info {
    display: inline-flex;
}
.video-code {
    font-size: 14px;
    padding: 5px;
    background: #2b2b2b;
    color: #dadada;
    white-space: nowrap;
    border-radius: 4px;
    margin-right: 5px;
}
.video-code:hover {
    color: #fff;
}
.video-link {
    display: inline-block;
    background: #2b2b2b;
    color: #ea4335;
    font-size: 14px;
    padding: 5px;
    border-radius: 4px;
    white-space: nowrap;
}
.video-link:hover {
    color: #cf2415;
}
#video-actions {
    margin-top: 5px;
    display: block;
    font-weight: 400;
}
#video-actions ul {
    margin-top: 0
}
#video-actions .server-actions{
    display: inline-flex;
}
#video-actions .video-server {
    cursor: pointer;
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: inline-flex;
    background: var(--primary-color);
    color: #fff
}
#video-actions .video-server:hover {
    background: #ea4335;
}
#video-actions .likes {
    cursor: pointer;
    background: #2b2b2b;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 4px;
    display: inline-flex;
}
#video-actions span{
    align-items: center;
}
#video-actions .comments{
    cursor: pointer;
    background: #2b2b2b;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 4px;
    display: inline-flex;
}
#video-actions .dislikes {
    cursor: pointer;
    background: #2b2b2b;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 4px;
    display: inline-flex;
}
#video-actions span.comments:after {
    content: '';
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-comment2.png);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-left: 3px;
    margin-top: -1px;
}
#video-actions .sharefacebook{
    cursor: pointer;
    background: #2b2b2b;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 4px;
    display: inline-flex;
}
#video-actions a.sharefacebook:after {
    content: '';
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-facebook.png);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-left: 3px;
    margin-top: -1px;
}
#video-actions .telegram{
    cursor: pointer;
    background: #2b2b2b;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 4px;
    display: inline-flex;
}
#video-actions a.telegram:after {
    content: '';
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-telegram.png);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-left: 3px;
    margin-top: -1px;
}

span.likes:after {
    content: '';
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-like.svg);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-left: 3px;
    margin-top: -1px;
}
span.likes.active:after {
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-liked.svg);
}
span.rating:after {
    content: '';
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-heart.svg);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-left: 3px;
}
span.dislikes:after {
    content: '';
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-dislike.svg);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-left: 3px;
}
span.dislikes.active:after {
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-disliked.svg);
}
span.views {
    cursor: pointer;
    background: #2b2b2b;
    margin-bottom: 5px;
    border-radius: 4px;
    padding: 5px;
    display: inline-flex;
}
span.views:after {
    content: '';
    display: block;
    background: url(/wp-content/themes/flatsome_film_child/assets/img/icon-views.svg) no-repeat;
    width: 16px;
    height: 16px;
    background-size: 16px;
    margin-left: 3px;
}
span.likes-rank:after {
    content: '';
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-like.svg);
    width: 14px;
    height: 14px;
    background-size: 14px;
    background-repeat: no-repeat;
    margin-left: 3px;
    margin-top: -1px;
    opacity: .9;
}
span.views-rank:after {
    content: '';
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-views.svg);
    width: 14px;
    height: 14px;
    background-size: 14px;
    background-repeat: no-repeat;
    margin-left: 3px;
}
span.likes.active:after {
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/liked.svg);
}
.top-likes {
    float: right;
    margin: 5px 0;
    background: #f2f2f2;
    opacity: 0.7;
    padding: 4px 4px;
}
.actress-tag{
    margin-bottom: 30px;
}
.tags-videos-single, .actress-videos-single {
    display: block;
    clear: both;
    margin-top: 15px;
    font-weight: bold;
    position: relative;
    margin-bottom:5px;
    padding-left:15px;
}
.tags-videos-single:before, .actress-videos-single:before{
    content: "";
    display: block;
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 3px;
    background: var(--alert-color);
}
.category-tag a {
    display: inline-flex;
    font-size: 14px;
    padding: 5px;
    margin-top: 5px;
    white-space: nowrap;
    background: var(--primary-color);
    border-radius: 4px; 
    color: #fff;
    align-items: center;
}
.category-tag a:before {
	content: '';
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-hashtag.svg);
    background-size: 16px;
    height: 16px;
    width: 16px;
    margin-right: 3px;
    background-repeat: no-repeat;
}
.actress-tag a {
    display: inline-flex;
    font-size: 14px;
    padding: 5px;
    margin-top: 5px;
    white-space: nowrap;
    background: var(--primary-color);
    border-left: 3px solid #f90;
    border-radius: 0 4px 4px 0;
    color: #fff;
}
.tag-item,
.tag-list {
    display: inline-block;
    background-color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 5px;
}
.tag-list .tag-item:after {
    content: ",\00a0"
}

.catfish-bottom {
    position: fixed;
    height: auto !important;
    width: 100% !important;
    text-align: center;
    left: 0;
    bottom: 0px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}
.banner-catfish-bottom {
    display: inline-flex;
    max-width: 50%;
    margin: auto;
    box-shadow: 0 0 5px #fff;
}
.catfish-bottom-close {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0 !important;
    padding: 0 10px;
    font-size: 16px;
    color: #dadada;
    background-color: #2b2b2b;
    border: 1px solid #dadada;
    box-shadow: 0 0 5px #fff;
    opacity: 0.8;
    cursor: pointer;
    border-radius: 50%;
}
.banner-preload{
    position: fixed;
    z-index: 999999999999;
    width: 100%;
    max-width: 100%;
    left: 0px;
    text-align: center;
    background-color: rgb(0 0 0 / 80%);
    height: 100%;
    top: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.banner-preload .banner-preload-container, .banner-preload .banner-preload-container a{
    display: block;
    width: 100%;
    height: 100%;
    align-content: center;
}
.banner-preload img{
    max-width: 500px;
    margin: auto;
}
.banner-preload .banner-preload-container .banner-preload-close {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0 10px;
    font-size: 16px;
    color: #dadada;
    background-color: #2b2b2b;
    border: 1px solid #dadada;
    box-shadow: 0 0 5px #fff;
    opacity: 0.8;
    cursor: pointer;
    z-index: 9999999999991;
    border-radius: 50%;
}
.keywords-list, .categories-list, .actress-list{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.keywords-list .keywords, .categories-list .category-item, .actress-list .actress-item{
    padding: 5px 10px;
    background-color: var(--primary-color);
    border-radius: 3px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}
.keywords-list .keywords::before{
    content: '';
    background-image: url(/wp-content/themes/flatsome_film_child/assets/img/icon-hashtag.svg);
    background-size: 16px;
    height: 16px;
    width: 16px;
    margin-right: 3px;
    background-repeat: no-repeat;
}
.categories-list .category-item{
    border-left: 2px solid var(--light-color);
}
.actress-list .actress-item{
    border-left: 2px solid var(--secondary-color);
}
.pagenavi {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 15px;
    cursor: pointer;
}
.pagenavi .page-numbers{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    line-height: 1.2;
}
.pagenavi .page-numbers li{
    margin-left: 0px !important;
}
.pagenavi a,.pagenavi span {
    margin-top: 5px;
    border: 1px solid #dadada;
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-block;
}
.pagenavi span.current {
    background: var(--alert-color);
    color: #fff;
}
.pagenavi a:hover {
    background: var(--alert-color);
    color: #fff;
}
.catfish-right, .catfish-left{
    position: fixed;
    z-index: 9999;
    top: 50vh;
    max-width: 200px;
}
.catfish-right{
    right: 0;
}
.catfish-left{
    left: 0;
}
.taxonomy-description--after-blog{
    margin-top: 20px;
    padding: 10px;
    background-color: var(--primary-color);
    border-radius: 10px;
    color: #fff;
}

/* Navi flatsome */
/* Wrapper ul */
ul.page-numbers.nav-pagination {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 20px;
    padding: 0;
    cursor: pointer;
}

/* li reset */
ul.page-numbers.nav-pagination li {
    margin: 0 !important;
}

/* link & span */
ul.page-numbers.nav-pagination a.page-number,
ul.page-numbers.nav-pagination span.page-number {
    margin-top: 5px;
    border: 1px solid #dadada;
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-block;
    color: #fff !important;
    text-decoration: none;
    line-height: 1.2 !important;
    height: auto !important;

}

/* current */
ul.page-numbers.nav-pagination span.page-number.current {
    background: var(--alert-color);
    color: #fff;
    border: 1px solid #dadada !important;
}

/* hover */
ul.page-numbers.nav-pagination a.page-number:hover {
    background: var(--alert-color);
    color: #fff;
    border-color: var(--alert-color);
}

/* next / prev icon align */
ul.page-numbers.nav-pagination a.next,
ul.page-numbers.nav-pagination a.prev {
    display: flex;
    align-items: center;
    justify-content: center;
}
ul.page-numbers.nav-pagination>li i{
    color: #fff !important;
    font-size: 1em !important;
    top: unset !important;
}
.overlay-icon{
    display: none;
}
.breadcrumb{
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* =====================
   Tablet (<= 1023px)
   ===================== */
   @media (max-width: 1023px) {
    #video-list.video-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* =====================
   Mobile (<= 767px)
   ===================== */
@media (max-width: 767px) {
    #video-list.video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .banner-catfish-top {
        max-width: 300px;
        margin-top: 5px;
    } 
}