body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
button,
textarea,
p,
blockquote,
th,
td {
    margin: 0;
    padding: 0
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

fieldset,
img {
    border: 0
}

address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var,
optgroup,
i {
    font-style: none;
    font-weight: none
}

del,
ins {
    text-decoration: none
}

li {
    list-style: none
}

caption,
th {
    text-align: left
}

.clr {
    clear: both
}

div.clear {
    clear: both
}

a {
    text-decoration: none;
    color: #dadada
}

a:hover {
    color: #fff
}

ul {
    list-style: none
}

.hidden {
    display: none!important
}

span.url {
    color: #9A2C2C;
    opacity: .8
}

span.url:hover {
    color: #9A2C2C
}

.left {
    float: left
}

.right {
    float: right
}

header {
    height: 80px
}

body {
    background: #1b1b1b;
    color: #dadada;
    font-family: arial, sans-serif;
    font-size: 14px
}

footer {
    display: grid;
    clear: both
}

#text-logo {
    display: inline;
    float: left;
    margin: 40px 0 0
}

#site-title {
    color: #333;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1
}

#site-desc {
    color: #999;
    float: left
}

#logo {
    float: left;
    margin: 25px 0 0 5px;
    opacity: .8
}

#logo:hover {
    opacity: 1
}

body>menu {
    margin: 0 auto 25px;
    padding: 0;
    width: 960px;
    z-index: 999
}

#primary-nav {
    border-top: 2px solid #2b2b2b!important;
    margin: 0 5px;
    background: #1b1b1b;
    font-size: 14px;
    font-weight: 500;
    padding: inherit
}

#primary-nav .menu {
    list-style: none;
    overflow: hidden;
    z-index: 999
}

#primary-nav .menu li a {
    float: left;
    display: inline-flex;
    text-align: center;
    padding: 5px 10px;
    margin-right: 5px;
    margin-top: 5px;
    background: #2b2b2b;
    color: #dadada;
    border-radius: 4px;
    z-index: 999
}

#primary-nav .menu li:hover a,
.menu li:hover a:active {
    text-decoration: none;
    color: #9A2C2C
}

span.icon {
    display: inline-flex
}

.icon-home:before {
    content: '';
    background-image: url(/static/img/icon-home.svg);
    width: 16px;
    height: 16px;
    background-size: 16px;
    margin-top: -1px;
    margin-right: 2px;
    background-repeat: no-repeat;
    display: inline-flex
}

.icon-verify:before {
    content: '';
    background-image: url(/static/img/icon-verify.svg);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-right: 3px
}

.icon-thumbs-up:before {
    content: '';
    background-image: url(/static/img/icon-thumbs-up.svg);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-right: 3px;
    margin-top: -1px
}

.icon-views:before {
    content: '';
    background-image: url(/static/img/icon-views.svg);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-right: 3px
}

.icon-hashtag:before {
    content: '';
    background-image: url(/static/img/icon-hashtag.svg);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-right: 3px
}

.icon-close:before {
    content: '';
    background-image: url(/static/img/icon-close.svg);
    width: 16px;
    height: 16px;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-right: 3px
}

#secondary-nav {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    margin: 0 5px;
    overflow: hidden
}

#secondary-nav .menu2 {
    list-style: none;
    overflow: hidden;
    z-index: 999
}

#secondary-nav .menu2 a {
    float: left;
    display: inline-block;
    padding: 5px;
    line-height: 26px;
    margin-right: 5px;
    margin-top: 5px;
    background: #f90;
    color: #fff;
    opacity: .9;
    text-align: center
}

#secondary-nav .menu2 a:hover {
    opacity: 1
}

#breadcrumbs {
    text-transform: none
}

#page-title {
    display: block;
    margin: 20px 5px 5px;
}

.breadcrumb {
    font-size: 16px;
    font-weight: 500;
    margin: 5px;
    text-transform: uppercase;
    border-bottom: 2px solid #2b2b2b
}

.breadcrumb span a {
    color: #dadada
}

.breadcrumb span a:hover {
    color: #fff;
    text-decoration: none
}

#search-box {
    margin: 5px;
    display: inline-flex;
    float: right;
}

.search {
    width: 100%;
    max-width: 300px;
    float: right;
    border: 1px solid #2b2b2b;
    display: flex;
    overflow: hidden
}

span.icon-search {
    display: inline-flex;
    background: #1b1b1b;
    padding: .3rem;
    margin-top: 1px;
    color: #dadada;
    opacity: .6
}

span.icon-search:before {
    content: '';
    background-image: url(/static/img/icon-search.svg);
    width: 14px;
    height: 14px;
    background-size: 14px;
    background-repeat: no-repeat
}

.search .searchTxt {
    width: 100%;
    background: #1b1b1b;
    padding: 5px;
    color: #dadada;
    font-size: 14px;
    outline: 0;
    border: 0;
    border-collapse: separate;
    -webkit-appearance: none
}

.search .searchBtn {
    background: none repeat scroll 0 0 rgba(154, 44, 44, .6);
    color: #dadada;
    border-left: 1px solid #2b2b2b!important;
    outline: 0;
    border: 0;
    border-radius: 0;
    float: left;
    font-size: 14px;
    padding: 5px;
    cursor: pointer;
    -webkit-appearance: none
}

.search .searchBtn:hover {
    background: #9A2C2C
}

.category-info {
    background: #2b2b2b;
    font-size: 14px;
    padding: 5px;
    margin: 0 5px;
    line-height: 1.5;
    border-radius: 4px
}

#wrapper {
    margin: 0 auto;
    position: relative;
    max-width: 1140px;
    border: 1px solid #2b2b2b
}

#container {
    display: block
}

#video {
    margin: 0 5px
}

#video-list {
    display: block
}

.video-item {
    width: 20%;
    margin-bottom: 20px;
    overflow: hidden;
    text-align: center;
    float: left;
    position: relative
}

.video-image {
    width: calc(100% - 10px);
    height: auto;
    display: block;
    margin-left: 5px;
    border-radius: 4px
}

.ribbon {
    font-size: .9em;
    position: absolute;
    top: 0;
    border-left: 3px solid #9A2C2C;
    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;
    font-size: 15px;
    height: 45px;
    max-height: 45px;
    line-height: 1.5;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    white-space: normal;
    -webkit-box-orient: vertical
}

.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 #9A2C2C;
    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
}

.desktop {
    margin-bottom: 5px
}

.video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%
}

.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 img:hover {}

.video-right li status {
    position: absolute;
    background-color: #9A2C2C;
    padding: 2px 5px;
    color: #fff;
    opacity: .8
}

.video-content {
    display: block
}

.video-description {
    display: block;
    padding: 5px 0;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word
}

.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: #9A2C2C;
    font-size: 14px;
    padding: 5px;
    border-radius: 4px;
    white-space: nowrap
}

.video-link:hover {
    color: #9A2C2C
}

#video-actions {
    margin-top: 5px;
    display: block;
    font-weight: 400
}

#video-actions ul {
    margin-top: 0
}

#video-actions .video-server {
    cursor: pointer;
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: inline-flex
}

#video-actions .video-server:hover {
    background: #9A2C2C;
    color: #fff
}

#video-actions .likes {
    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 .likes:hover,
#video-actions .dislikes:hover {
    /* background: #9A2C2C; */
    color: #fff
}

#video-actions .rating {
    cursor: pointer;
    background: #2b2b2b;
    padding: 5px;
    border-radius: 4px;
    display: inline-flex
}

#video-note {
    background: #2b2b2b;
    padding: 5px;
    display: inline-block
}

span.likes:after {
    content: '';
    background-image: url(/static/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(/static/img/icon-liked.svg)
}

span.dislikes:after {
    content: '';
    background-image: url(/static/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(/static/img/icon-disliked.svg)
}

span.rating:after {
    content: '';
    background-image: url(/static/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(/static/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(/static/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(/static/img/icon-views.svg) no-repeat;
    width: 16px;
    height: 16px;
    background-size: 16px;
    margin-left: 3px
}

span.likes-rank:after {
    content: '';
    background-image: url(/static/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(/static/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(/static/img/liked.svg)
}

.top-likes {
    float: right;
    margin: 5px 0;
    background: #f2f2f2;
    opacity: .7;
    padding: 4px
}

.bt_normal {
    background: #2b2b2b
}

.bt_active {
    background: #9A2C2C
}

#download {
    text-align: center
}

.download-button {
    display: inline-block
}

.download {
    width: 16px;
    background: #2b2b2b;
    padding: 5px 10px;
    display: inline-block
}

.download:hover {
    background: #9A2C2C;
    color: #fff
}

a.download:before {
    content: '';
    position: absolute;
    background: url(/static/img/dl.svg) no-repeat;
    width: 25px;
    height: 14px;
    background-size: 16px;
    background-repeat: no-repeat
}

.id.dl:before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background: url(/static/img/dl.svg) no-repeat;
    position: absolute;
    background-size: 16px;
    margin-left: -19px
}

.quality {
    background: #9A2C2C;
    padding: 5px 10px;
    font-size: 15px;
    cursor: pointer;
    margin-right: 10px
}

.quality:hover {
    background: #9A2C2C
}

.video-tags {
    display: inline-block;
    list-style-type: none;
    margin-bottom: 5px;
    width: 100%;
    font-weight: 400
}

.category-tag a {
    display: inline-flex;
    font-size: 14px;
    padding: 5px;
    margin-top: 5px;
    white-space: nowrap;
    background: #2b2b2b;
    border-radius: 4px
}

.category-tag a:before {
    content: '';
    background-image: url(/static/img/icon-hashtag.svg);
    background-size: 16px;
    height: 16px;
    width: 16px;
    margin-right: 3px;
    background-repeat: no-repeat
}

.category-tag a:hover {
    background-color: #9A2C2C;
    color: #fff
}

.actress-tag {
    list-style-type: none;
    margin: 0
}

.actress-tag a {
    display: inline-flex;
    font-size: 14px;
    padding: 5px;
    margin-top: 5px;
    white-space: nowrap;
    background: #2b2b2b;
    border-left: 3px solid #f90;
    border-radius: 0 4px 4px 0
}

.actress-tag a:hover {
    background-color: #9A2C2C;
    color: #fff
}

.search-history {
    list-style-type: none;
    margin: 0 5px;
    overflow: hidden
}

.search-history a {
    display: inline-block;
    font-size: 14px;
    padding: 5px 10px;
    margin-top: 5px;
    white-space: nowrap;
    background: #2b2b2b;
    border-radius: 4px
}

.search-history a:hover {
    background-color: #9A2C2C;
    color: #fff
}

.textFilter {
    list-style-type: none;
    text-transform: uppercase;
    margin: 0 5px 5px;
    overflow: hidden
}

.textFilter a {
    display: inline-block;
    font-size: 14px;
    padding: 4px;
    margin-top: 5px;
    border-radius: 4px;
    white-space: nowrap;
    background: #2b2b2b
}

.textFilter a:hover {
    background-color: #9A2C2C;
    color: #fff
}

.loadPage .active {
    background-color: #9A2C2C;
    color: #fff
}

.pagenavi {
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer
}

.pagenavi a {
    margin-top: 5px;
    border: 1px solid #dadada;
    padding: 5px 15px;
    margin-right: 5px;
    border-radius: 4px;
    display: inline-block
}

.pagenavi a.active {
    background: #9A2C2C;
    color: #fff
}

.pagenavi a:hover {
    background: #9A2C2C;
    color: #fff
}

.footer-wrap {
    font-size: 15px;
    font-weight: 500;
    margin: 5px;
    background: #1b1b1b;
    line-height: 1.5;
    border-top: 2px solid #2b2b2b
}

.intrinsic-container {
    position: relative;
    height: 0;
    overflow: hidden
}

.intrinsic-container-16x9 {
    padding-bottom: 56.25%
}

.intrinsic-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

@media only screen and (max-width:768px) {
    .video-item {
        width: 25%;
        position: relative;
        float: left
    }
}

@media only screen and (max-width:600px) {
    .video-item {
        width: 33.33333%;
        position: relative;
        float: left
    }
}

@media only screen and (max-width:480px) {
    .video-item {
        width: 33.333333%;
        position: relative;
        float: left
    }
}

@media only screen and (max-width:400px) {
    .video-item {
        width: 50%;
        position: relative;
        float: left
    }
}

#vlxx.jw-error {
    height: 56.25%!important
}

.jw-icon.jw-icon-inline.jw-button-color.jw-reset.jw-icon-pip {
    display: none!important
}

.jw-icon.jw-icon-inline.jw-button-color.jw-reset.jw-icon-rewind {
    display: none!important
}

.jw-toggle.jw-off {
    color: #d8d8d8
}

.jw-controlbar.jw-background-color.jw-reset {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .4) 70%, rgba(0, 0, 0, .5))
}

.jw-icon.jw-icon-inline.jw-button-color.jw-reset.jw-icon-rewind {
    display: none!important
}

.jw-rightclick {
    display: none!important
}

.jw-aspect.jw-reset {
    padding-top: 40%!important
}

.jw-logo.jw-logo-top-right.jw-reset {
    width: 200px!important;
    height: 57px!important;
    margin: 5px!important
}

.empty-result {
    margin-bottom: 1em;
    margin-top: 1em;
    color: #717171;
    font-size: 20px;
    text-align: center;
}

.catfishs-ads {
    position: fixed;
    bottom: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
}

.ads-body {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
    width: 100%;
    align-items: center;
}

.ads-item {
    position: relative;
    max-width: 728px;
}

.catfishs-item {
    position: relative;
    max-width: 728px;
}

.close-ads {
    position: absolute;
    right: 3px;
    cursor: pointer;
    color: #fff;
    padding: 2px 6px;
    background-color: #818181;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    margin-top: 2px;
    font-size: 15px;
}

.close-ads-catfishs {
    position: absolute;
    cursor: pointer;
    color: #fff;
    padding: 2px 6px;
    background-color: #818181;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    margin-top: 2px;
    font-size: 15px;
    top: -27px;
    right: 0;
}

.banner-preload {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1000;
}

.banner-preload .banner-preload-container {
    background: rgba(0, 0, 0, .8);
    box-shadow: 0 0 5px #fff;
    position: absolute;
    width: 100vw;
    margin: 0 auto;
    cursor: pointer;
    height: 100%;
}

.banner-preload-container>a {
    max-width: 600px;
    height: auto;
    margin: calc(50vh - 200px) auto;
    display: block;
}

.banner-preload .banner-preload-container img {
    width: 100%;
    height: 100%;
}

.banner-preload .banner-preload-container .banner-preload-close {
    position: absolute;
    top: calc(50vh - 200px);
    right: calc(50vw - 300px);
    padding: 0 10px;
    font-size: 16px;
    color: #dadada;
    background-color: #2b2b2b;
    border: 1px solid #dadada;
    box-shadow: 0 0 5px #fff;
    opacity: .8;
    cursor: pointer;
}

.banner-preload {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1000;
}

.banner-preload .banner-preload-container {
    background: rgba(0, 0, 0, .8);
    box-shadow: 0 0 5px #fff;
    position: absolute;
    width: 100vw;
    margin: 0 auto;
    cursor: pointer;
    height: 100%;
}

.banner-preload-container>a {
    max-width: 500px;
    height: auto;
    margin: calc(50vh - 200px) auto;
    display: block;
}

.banner-preload .banner-preload-container img {
    width: 100%;
    height: 100%;
}

.banner-preload .banner-preload-container .banner-preload-close {
    position: absolute;
    top: calc(50vh - 200px);
    right: calc(50vw - 250px);
    padding: 0 10px;
    font-size: 16px;
    color: #dadada;
    background-color: #2b2b2b;
    border: 1px solid #dadada;
    box-shadow: 0 0 5px #fff;
    opacity: .8;
    cursor: pointer;
}
/* ===== Holiclip modern UI refresh ===== */
:root {
    --ui-bg: #090b0d;
    --ui-panel: #101316;
    --ui-panel-2: #15181b;
    --ui-border: #24282c;
    --ui-text: #f1f3f5;
    --ui-muted: #9ca3aa;
    --ui-red: #9A2C2C;
    --ui-red-dark: #9A2C2C;
}

html { background: var(--ui-bg); }
body { background: var(--ui-bg); color: var(--ui-text); font-family: Arial, Helvetica, sans-serif; }
#wrapper { max-width: 1180px; margin: 18px auto; background: #0b0d0f; border: 1px solid #191d20; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
#header { padding: 0 16px 14px; background: linear-gradient(180deg,#0b0d0f 0%,#0a0c0e 100%); }
.site-header { min-height: 72px; display:flex; align-items:center; gap:30px; border-bottom:1px solid var(--ui-border); }
#logo { float:none; margin:0; flex:0 0 auto; opacity:1; }
#logo img { display:block; width:200px; height:30px; object-fit:contain; }
#primary-nav { flex:1; border:0 !important; margin:0; background:transparent; }
#primary-nav .menu { display:flex; align-items:center; justify-content:center; gap:8px; overflow:visible; }
#primary-nav .menu li a { float:none; display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 16px; margin:0; background:transparent; border:1px solid transparent; border-radius:7px; color:#e5e7eb; font-weight:600; transition:.18s ease; }
#primary-nav .menu li a:hover { background:#171a1e; color:#fff; }
.icon { align-items:center; }
.icon-ranking:before,.icon-fire:before { display:inline-flex; content:''; width:16px; height:16px; margin-right:7px; background-size:16px; background-repeat:no-repeat; }
.icon-ranking:before { background-image:url(/static/img/icon-ranking.svg); }
.icon-fire:before { background-image:url(/static/img/icon-fire.svg); }

#category-nav { margin-top:14px; padding:14px; border:1px solid var(--ui-border); border-radius:8px; background:linear-gradient(180deg,#0e1114,#0c0f11); }
.category-nav-title { margin-bottom:12px; padding-left:11px; border-left:3px solid var(--ui-red); color:#eceff1; font-size:16px; font-weight:700; letter-spacing:.3px; }
.category-nav-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; }
.category-nav-item { min-height:36px; display:flex; align-items:center; justify-content:center; gap:7px; padding:0 10px; background:#121518; border:1px solid #20252a; border-radius:6px; color:#dfe3e6; font-size:14px; white-space:nowrap; overflow:hidden; }
.category-nav-item:hover { background:#171b1f; color:#fff; border-color:#33383d; }
.category-nav-item img { width:16px; height:16px; object-fit:contain; flex:0 0 auto; }
.category-nav-item .icon { display:inline-flex; align-items:center; }

#search-box { float:none; display:block; margin:14px 0 0; padding:0; }
.search { max-width:none; height:48px; border:1px solid var(--ui-border); border-radius:8px; background:#0f1215; }
span.icon-search { width:42px; padding:0; margin:0; align-items:center; justify-content:center; background:transparent; opacity:.75; }
.search .searchTxt { background:transparent; padding:0 10px; font-size:15px; }
.search .searchBtn { min-width:96px; padding:0 20px; border-left:0 !important; border-radius:6px; margin:4px; background:var(--ui-red); font-weight:600; font-size:14px; }
.search .searchBtn:hover { background:#9A2C2C; }

#container { padding:0 16px 16px; }
.video-title-wrap { margin-top:14px; }
#page-title.video-title { margin:0 0 10px; padding:0 0 9px 11px; border-left:3px solid var(--ui-red); border-bottom:1px solid var(--ui-border); font-size:20px; font-weight:700; text-transform:none; }
#video { margin:0; padding:12px; background:#0e1114; border:1px solid var(--ui-border); border-radius:8px; }
.video-player { padding-bottom:56.25%; background:#050607; border-radius:6px; overflow:hidden; }
#video-actions { margin-top:10px; min-height:42px; display:flex; align-items:center; gap:8px; }
#video-actions .video-server { order:0; padding:0 12px; min-height:38px; align-items:center; background:#15181b; border:1px solid #272c31; margin:0; border-radius:6px; }
#video-actions .video-server:hover { background:#1b1f23; color:#fff; }
#video-actions .video-stats { margin-left:auto; display:flex; gap:8px; }
#video-actions .likes,#video-actions .dislikes,#video-actions .rating,span.views { min-height:38px; box-sizing:border-box; align-items:center; justify-content:center; padding:0 12px; margin:0; background:#131619; border:1px solid #252a2f; border-radius:6px; }
.video-info { display:flex; align-items:center; gap:8px; margin-top:10px; margin-bottom:0; }
.video-rank-badge { display:inline-flex; align-items:center; justify-content:center; min-width:48px; height:38px; padding:0 12px; box-sizing:border-box; background:var(--ui-red); color:#fff; border-radius:6px; font-weight:700; }
.video-code-preserved { display:none !important; }
.video-link,.video-code { min-height:38px; box-sizing:border-box; display:inline-flex; align-items:center; padding:0 12px; margin:0; background:#131619; border:1px solid #252a2f; border-radius:6px; }
.video-link { color:#9A2C2C; }
.video-content { margin-top:8px; }
.video-description { color:#cbd0d4; padding:5px 0; }
.video-tags a { border:1px solid #252a2f; background:#131619; }
.category-tag a:hover,.actress-tag a:hover { background:#191d21; }

#video-list { margin-top:14px; padding:14px 0 0; border-top:1px solid var(--ui-border); }
#video-list h2.breadcrumb { margin:0 0 12px; padding:0 0 8px 11px; border-left:3px solid var(--ui-red); border-bottom:1px solid var(--ui-border); font-size:16px; }
.video-item { width:20%; margin-bottom:12px; }
.video-image { width:calc(100% - 12px); margin:0 6px; border-radius:6px; border:1px solid #22272b; }
.video-name { margin:7px 6px 0; font-size:14px; height:42px; max-height:42px; text-align:left; }
.video-rank,.ribbon { border-left-color:var(--ui-red); }

#footer { clear:both; padding:0 16px 16px; }
#footer footer { border-top:1px solid var(--ui-border); padding:20px 0 4px; }
#footer .breadcrumb { border:0; text-align:center; font-size:15px; margin:0 0 10px; color:#e7e9eb; }
.search-history { text-align:center; margin:0; }
.search-history a { background:#131619; border:1px solid #252a2f; border-radius:6px; margin:4px 3px 0; }
.search-history a:hover { background:#191d21; }
.contribution-upload { margin:18px auto 8px !important; width:auto !important; text-align:center; }
.contribution-upload-toggle { min-height:40px !important; padding:0 16px !important; border-radius:7px !important; background:#131619 !important; border:1px solid #2b3035 !important; font-size:14px !important; }
.contribution-upload-toggle:hover { background:#191d21 !important; border-color:#3a4046 !important; }
.footer-wrap { margin-top:12px; text-align:center; color:#aeb4b9; }

@media (max-width: 900px) {
    .category-nav-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

.video-action-main { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.video-link-inline { flex:0 0 auto; }
.video-category-inline { display:inline-flex; align-items:center; min-height:38px; padding:0 12px; box-sizing:border-box; background:#131619; border:1px solid #252a2f; border-radius:6px; color:#dfe3e6; white-space:nowrap; }
.video-category-inline:hover { background:#191d21; color:#fff; }
.video-info-preserved { display:none !important; }


/* ===== Requested navigation/category/play adjustments ===== */
:root { --ui-red: #9A2C2C; }

/* Only 3 top navigation items: Trang chủ / Clip hay / Xem nhiều nhất */
#primary-nav .menu { grid-template-columns: repeat(3, auto); }
/* Category heading is intentionally removed; keep the category grid clean. */
#category-nav { margin-top:14px; }
.category-nav-title { display:none !important; }

/* Center every category label both vertically and horizontally. */
.category-nav-item {
    min-height:40px;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    line-height:1.2 !important;
}
.category-nav-item > span:not(.icon) {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1.2;
    text-align:center;
}
.category-nav-item .icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1.2;
}

/* Search button uses the softer logo-red instead of the stronger bright red. */
.search .searchBtn { background:#9A2C2C !important; }
.search .searchBtn:hover { background:#9A2C2C !important; }




/* ===== Definitive top navigation state ===== */
#primary-nav .menu li a,
#primary-nav .menu li.active a,
#primary-nav .menu li a.nav-selected {
    background:#131619 !important;
    border-color:#252a2f !important;
    color:#e5e7eb !important;
}
#primary-nav .menu li a:hover {
    background:#171a1e !important;
    border-color:#2d3339 !important;
    color:#fff !important;
}
#primary-nav .menu li a.nav-selected {
    background:#9A2C2C !important;
    border-color:#9A2C2C !important;
    color:#fff !important;
}
#primary-nav .menu li a.nav-selected:hover {
    background:#9A2C2C !important;
    border-color:#9A2C2C !important;
    color:#fff !important;
}


/* ===== v13 video action layout ===== */
#video-actions {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
}
#video-actions .video-action-main {
    display:flex !important;
    align-items:center !important;
    flex:0 0 auto !important;
    width:auto !important;
    min-width:0 !important;
}
#video-actions .video-stats {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    margin-left:auto !important;
    width:auto !important;
}
#video-actions .video-stats .rating {
    display:none !important;
}
#video-actions .likes,
#video-actions .dislikes,
#video-actions .views {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
}
span.rating,
span.rating:after {
    display:none !important;
    content:none !important;
}


/* ===== v16 final: footer panel + two-line movie title ellipsis ===== */
.footer-wrap {
    box-sizing: border-box !important;
    margin: 12px 5px 5px !important;
    padding: 18px 20px !important;
    background: #131619 !important;
    border: 1px solid #252a2f !important;
    border-top: 1px solid #252a2f !important;
    border-radius: 14px !important;
    color: #aeb4b9 !important;
    line-height: 1.5 !important;
    overflow: hidden !important;
}
.footer-wrap .footer-content p { margin: 0 !important; }
.footer-wrap .footer-content br { line-height: 1.5 !important; }
.footer-wrap .footer-content {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    color: #aeb4b9 !important;
}
.footer-wrap .footer-copyright {
    margin: 18px 0 0 !important;
    padding: 16px 0 0 !important;
    border-top: 1px solid #252a2f !important;
    text-align: center !important;
    color: #aeb4b9 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Long movie names: maximum 2 lines, then ... */
.video-name {
    display: -webkit-box !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    float: none !important;
}
.video-name > a {
    display: -webkit-box !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}
@media (max-width: 767px) {
    .footer-wrap {
        margin: 10px 5px 5px !important;
        padding: 15px 12px !important;
        border-radius: 12px !important;
    }
    .footer-wrap .footer-copyright {
        margin-top: 14px !important;
        padding-top: 13px !important;
        font-size: 12px !important;
    }
    .video-name {
        height: 39px !important;
        max-height: 39px !important;
        line-height: 19.5px !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    .video-name > a {
        height: 39px !important;
        max-height: 39px !important;
        line-height: 19.5px !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
}


/* HOLICLIP V15 - footer visual correction
   Footer Telegram/copyright block intentionally matches the Upload Video block:
   dark charcoal surface, subtle border, rounded corners.
*/
.footer-telegram,
.telegram-footer,
.footer-bottom,
.footer-copyright,
.footer-info,
.footer-contact {
    border-radius: 12px !important;
}

/* Broad fallback for the footer information panel only.
   The Upload Video block is NOT targeted here. */
.footer-telegram,
.telegram-footer,
.footer-bottom,
.footer-copyright,
.footer-info,
.footer-contact {
    background: #131619 !important;
    border: 1px solid #252a2f !important;
}

/* Keep text hierarchy clean on dark surface. */
.footer-telegram a,
.telegram-footer a,
.footer-bottom a,
.footer-copyright a,
.footer-info a,
.footer-contact a {
    color: #e6e7e9 !important;
}

/* V15 explicit Telegram/copyright panel */
.v15-footer-panel {
    background: #131619 !important;
    border: 1px solid #252a2f !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* V15 title: maximum two lines, then ellipsis */
.video-title,
.movie-title,
.detail-title,
h1.video-title,
h1.movie-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-break: break-word !important;
}


/* HOLICLIP V16 - exact footer Telegram/copyright panel */
#footer .footer-wrap.v16-footer-panel {
    box-sizing: border-box !important;
    width: calc(100% - 10px) !important;
    margin: 12px 5px 5px !important;
    padding: 18px 20px !important;
    background: #131619 !important;
    border: 1px solid #252a2f !important;
    border-top: 1px solid #252a2f !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    color: #aeb4b9 !important;
}
#footer .footer-wrap.v16-footer-panel .footer-content {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    background: transparent !important;
}
#footer .footer-wrap.v16-footer-panel .footer-copyright {
    margin: 18px 0 0 !important;
    padding: 16px 0 0 !important;
    border-top: 1px solid #252a2f !important;
    background: transparent !important;
    text-align: center !important;
    color: #aeb4b9 !important;
}
@media (max-width: 600px) {
    #footer .footer-wrap.v16-footer-panel {
        width: calc(100% - 10px) !important;
        margin: 10px 5px 5px !important;
        padding: 15px 12px !important;
        border-radius: 12px !important;
    }
    #footer .footer-wrap.v16-footer-panel .footer-copyright {
        margin-top: 14px !important;
        padding-top: 13px !important;
    }
}


/* HOLICLIP V18 - movie cards: exactly 2 title lines on desktop */
@media (min-width: 768px) {
    #video-list .video-item .video-name {
        display: block !important;
        float: none !important;
        box-sizing: border-box !important;
        width: calc(100% - 10px) !important;
        margin: 6px 5px 15px !important;
        height: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;
        line-height: 22.5px !important;
        overflow: hidden !important;
        text-align: left !important;
    }
    #video-list .video-item .video-name > a {
        display: -webkit-box !important;
        width: 100% !important;
        height: 45px !important;
        max-height: 45px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
        line-height: 22.5px !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }
}



/* HOLICLIP V19 - compact Telegram/copyright footer
   Keep the footer to the size of its two text rows. No nested box around copyright. */
#footer .footer-wrap.v19-footer-panel {
    box-sizing: border-box !important;
    display: block !important;
    width: calc(100% - 10px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 12px 5px 5px !important;
    padding: 12px 16px !important;
    background: #131619 !important;
    border: 1px solid #252a2f !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    color: #aeb4b9 !important;
    line-height: 1.45 !important;
}
#footer .footer-wrap.v19-footer-panel .footer-content {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: center !important;
    color: #aeb4b9 !important;
    line-height: 1.45 !important;
}
#footer .footer-wrap.v19-footer-panel .footer-content p,
#footer .footer-wrap.v19-footer-panel .footer-content div,
#footer .footer-wrap.v19-footer-panel .footer-content span {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
#footer .footer-wrap.v19-footer-panel .footer-copyright {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    margin: 9px 0 0 !important;
    padding: 9px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid #252a2f !important;
    border-radius: 0 !important;
    text-align: center !important;
    color: #aeb4b9 !important;
    line-height: 1.45 !important;
}
#footer .footer-wrap.v19-footer-panel .footer-content a,
#footer .footer-wrap.v19-footer-panel .footer-copyright a {
    color: #e6e7e9 !important;
}
@media (max-width: 767px) {
    #footer .footer-wrap.v19-footer-panel {
        width: calc(100% - 10px) !important;
        margin: 10px 5px 5px !important;
        padding: 10px 12px !important;
        border-radius: 11px !important;
        font-size: 12px !important;
    }
    #footer .footer-wrap.v19-footer-panel .footer-copyright {
        margin-top: 7px !important;
        padding-top: 7px !important;
    }
}

/* ===== v19 FINAL DESKTOP HEADER =====
 * Desktop only. Mobile keeps the existing mobile stylesheet/layout.
 * Layout: logo | 3 horizontal navigation buttons | search box.
 * No navigation item is red until it is actually clicked.
 */
@media (min-width: 901px) {
    #header {
        position: relative !important;
        padding: 0 16px 14px !important;
        box-sizing: border-box !important;
    }

    #header > .site-header {
        height: 92px !important;
        min-height: 92px !important;
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 0 !important;
        border-bottom: 1px solid var(--ui-border) !important;
        box-sizing: border-box !important;
    }

    #header > .site-header #logo {
        flex: 0 0 300px !important;
        width: 300px !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
    }
    #header > .site-header #logo img {
        display: block !important;
        width: 300px !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 44px !important;
        object-fit: contain !important;
    }

    /* Three navigation buttons: icon beside text, not above it. */
    #header > .site-header #primary-nav {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    #header > .site-header #primary-nav .menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    #header > .site-header #primary-nav .menu li {
        display: block !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #header > .site-header #primary-nav .menu li a,
    #header > .site-header #primary-nav .menu li.active a {
        width: 145px !important;
        min-width: 145px !important;
        height: 78px !important;
        min-height: 78px !important;
        margin: 0 !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        border: 1px solid #252a2f !important;
        border-radius: 9px !important;
        background: #131619 !important;
        color: #e5e7eb !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        text-align: center !important;
        float: none !important;
        transition: background .18s ease, border-color .18s ease, color .18s ease !important;
    }
    #header > .site-header #primary-nav .menu li a:hover {
        background: #171a1e !important;
        border-color: #33383d !important;
        color: #fff !important;
    }
    #header > .site-header #primary-nav .menu li a.nav-selected {
        background: #9A2C2C !important;
        border-color: #9A2C2C !important;
        color: #fff !important;
    }
    #header > .site-header #primary-nav .menu li a .icon {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-height: 0 !important;
        gap: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
    #header > .site-header #primary-nav .menu li a .icon:before {
        display: inline-flex !important;
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
        margin: 0 9px 0 0 !important;
        background-size: 24px 24px !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    /* Search: same 78px height as the navigation buttons, icon left + red button right. */
    #header > #search-box {
        position: static !important;
        flex: 1 1 330px !important;
        width: auto !important;
        min-width: 260px !important;
        height: 78px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        float: none !important;
        z-index: 30 !important;
    }
    #header > #search-box .search {
        width: 100% !important;
        max-width: none !important;
        height: 78px !important;
        margin: 0 !important;
        padding: 0 5px 0 0 !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
        border: 1px solid #252a2f !important;
        border-radius: 9px !important;
        background: #101316 !important;
        overflow: hidden !important;
        float: none !important;
    }
    #header > #search-box .search .icon-search {
        order: 1 !important;
        display: flex !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 76px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        opacity: .9 !important;
    }
    #header > #search-box .search .icon-search:before {
        width: 20px !important;
        height: 20px !important;
        background-size: 20px 20px !important;
    }
    #header > #search-box .search .searchTxt {
        order: 2 !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 76px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        color: #e5e7eb !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }
    #header > #search-box .search .searchTxt::placeholder {
        color: #8f969c !important;
        opacity: 1 !important;
    }
    #header > #search-box .search .searchBtn {
        order: 3 !important;
        display: flex !important;
        flex: 0 0 105px !important;
        width: 105px !important;
        height: 68px !important;
        min-width: 105px !important;
        margin: 4px !important;
        padding: 0 12px !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 7px !important;
        background: #9A2C2C !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
    }
    #header > #search-box .search .searchBtn:hover {
        background: #9A2C2C !important;
    }

    #header > #category-nav {
        margin-top: 14px !important;
    }
}

/* ===== v19 HEADER FINAL OVERRIDE =====
 * Desktop only: logo + 3 compact horizontal nav buttons + search on ONE row.
 * Navigation/search height matches the category tiles (40px).
 * Mobile is untouched.
 */
@media (min-width: 901px) {
    #header {
        display: grid !important;
        grid-template-columns: 300px minmax(max-content, auto) minmax(300px, 1fr) !important;
        grid-template-rows: 40px auto !important;
        column-gap: 14px !important;
        row-gap: 14px !important;
        align-items: center !important;
        padding: 0 16px 14px !important;
        box-sizing: border-box !important;
    }

    /* Flatten the wrapper so its three desktop controls become grid items. */
    #header > .site-header {
        display: contents !important;
    }

    #header > .site-header #logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 300px !important;
        max-width: 300px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header > .site-header #logo img {
        display: block !important;
        width: 300px !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 40px !important;
        object-fit: contain !important;
    }

    #header > .site-header #primary-nav {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        align-self: center !important;
    }

    #header > .site-header #primary-nav .menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: max-content !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    #header > .site-header #primary-nav .menu li {
        display: block !important;
        flex: 0 1 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header > .site-header #primary-nav .menu li a,
    #header > .site-header #primary-nav .menu li.active a {
        width: auto !important;
        min-width: 120px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-width: 220px !important;
        margin: 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        border: 1px solid #252a2f !important;
        border-radius: 7px !important;
        background: #131619 !important;
        color: #e5e7eb !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        float: none !important;
    }

    #header > .site-header #primary-nav .menu li a:hover {
        background: #171a1e !important;
        border-color: #33383d !important;
        color: #fff !important;
    }

    #header > .site-header #primary-nav .menu li a.nav-selected {
        background: #9A2C2C !important;
        border-color: #9A2C2C !important;
        color: #fff !important;
    }

    #header > .site-header #primary-nav .menu li a .icon {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    #header > .site-header #primary-nav .menu li a .icon:before {
        display: inline-flex !important;
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px !important;
        margin: 0 7px 0 0 !important;
        background-size: 20px 20px !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    /* Search is the third grid item: same row and same 40px height. */
    #header > #search-box {
        grid-column: 3 !important;
        grid-row: 1 !important;
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        float: none !important;
        z-index: 30 !important;
        align-self: center !important;
    }

    #header > #search-box .search {
        width: 100% !important;
        max-width: none !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 3px 0 0 !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
        border: 1px solid #252a2f !important;
        border-radius: 7px !important;
        background: #101316 !important;
        overflow: hidden !important;
        float: none !important;
    }

    #header > #search-box .search .icon-search {
        order: 1 !important;
        display: flex !important;
        flex: 0 0 36px !important;
        width: 36px !important;
        height: 38px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        opacity: .9 !important;
    }

    #header > #search-box .search .icon-search:before {
        width: 19px !important;
        height: 19px !important;
        background-size: 19px 19px !important;
    }

    #header > #search-box .search .searchTxt {
        order: 2 !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 38px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        color: #e5e7eb !important;
        font-size: 14px !important;
        line-height: 38px !important;
        box-sizing: border-box !important;
    }

    #header > #search-box .search .searchTxt::placeholder {
        color: #8f969c !important;
        opacity: 1 !important;
    }

    #header > #search-box .search .searchBtn {
        order: 3 !important;
        display: flex !important;
        flex: 0 0 96px !important;
        width: 96px !important;
        height: 34px !important;
        min-width: 96px !important;
        margin: 2px !important;
        padding: 0 10px !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 6px !important;
        background: #9A2C2C !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    #header > #search-box .search .searchBtn:hover {
        background: #9A2C2C !important;
    }

    /* Category starts below the new single header row. */
    #header > #category-nav {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Keep the category tiles at their existing 40px height so the top
       navigation/search match them exactly. */
    #header > #category-nav .category-nav-item {
        min-height: 40px !important;
        height: 40px !important;
        box-sizing: border-box !important;
    }
}

/* ===== v20 UI refinement =====
 * Date filters use the same neutral panel style as category tiles.
 * Active filter remains red only after selection.
 */
.textFilter {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
    margin: 0 5px 10px !important;
    overflow: visible !important;
}
.textFilter a,
.textFilter a:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    background: #121518 !important;
    border: 1px solid #20252a !important;
    border-radius: 7px !important;
    color: #dfe3e6 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}
.textFilter a:hover {
    background: #171b1f !important;
    border-color: #33383d !important;
    color: #fff !important;
}
.textFilter a.active,
.textFilter .active {
    background: #9A2C2C !important;
    border-color: #9A2C2C !important;
    color: #fff !important;
}

/* Category tiles can grow naturally when a label is longer than one line. */
.category-nav-item {
    min-width: 0 !important;
    height: auto !important;
    min-height: 40px !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
}
.category-nav-item .category-nav-content {
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.25 !important;
}
.category-nav-item .category-nav-label {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    text-align: center !important;
}

/* Remove the old red vertical accent before the movie title and related clips. */
#page-title.video-title,
#video-list h2.breadcrumb {
    border-left: 0 !important;
    padding-left: 0 !important;
}

@media (max-width: 900px) {
    .textFilter {
        gap: 6px !important;
        margin-left: 5px !important;
        margin-right: 5px !important;
    }
    .textFilter a,
    .textFilter a:visited {
        min-height: 40px !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
}

/* ===== v20 FINAL UI FIX ===== */
/* Date filters: same neutral tone as category blocks; only selected item is red. */
.textFilter a,
.textFilter a:visited {
    background: #121518 !important;
    border: 1px solid #20252a !important;
    color: #dfe3e6 !important;
    min-height: 40px !important;
    height: auto !important;
    box-sizing: border-box !important;
}
.textFilter a:hover {
    background: #171b1f !important;
    border-color: #33383d !important;
    color: #fff !important;
}
.textFilter a.active,
.textFilter .active {
    background: #9A2C2C !important;
    border-color: #9A2C2C !important;
    color: #fff !important;
}

/* Remove the red vertical accent from movie title and related-clips heading. */
#page-title.video-title,
.breadcrumb.video-title,
#video-list h2.breadcrumb {
    border-left: 0 !important;
    padding-left: 0 !important;
}

/* Category blocks automatically adapt to available width and long labels. */
.category-nav-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
}
.category-nav-item {
    min-width: 0 !important;
    height: auto !important;
    min-height: 40px !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    text-align: center !important;
    line-height: 1.25 !important;
    box-sizing: border-box !important;
}
.category-nav-item .category-nav-content,
.category-nav-item .category-nav-label {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    text-align: center !important;
    line-height: 1.25 !important;
}


/* ===== v20 requested finishing touches =====
 * Center only the Clip hay / Xem nhiều nhất page headings.
 * Use a softer red for the requested active/touch areas.
 */
.page-section-title {
    text-align: center !important;
    padding-left: 0 !important;
    border-left: 0 !important;
}

.search .searchBtn {
    background: #9A2C2C !important;
}
.search .searchBtn:hover,
.search .searchBtn:focus {
    background: #9A2C2C !important;
}

#primary-nav .menu li a.nav-selected {
    background: #9A2C2C !important;
    border-color: #9A2C2C !important;
}
#primary-nav .menu li a.nav-selected:hover,
#primary-nav .menu li a.nav-selected:focus {
    background: #9A2C2C !important;
    border-color: #9A2C2C !important;
}

.textFilter a.active,
.textFilter .active {
    background: #9A2C2C !important;
    border-color: #9A2C2C !important;
}

/* Desktop server selection: red only while the user has selected it. */
@media (min-width: 901px) {
    #video-actions .video-server.server-touch-active {
        background: #9A2C2C !important;
        border-color: #9A2C2C !important;
        color: #fff !important;
    }
    #video-actions .video-server:hover:not(.server-touch-active) {
        background: #1b1f23 !important;
        color: #fff !important;
    }
}

/* ===== v20 FINAL requested desktop-only corrections ===== */
@media (min-width: 901px) {
    /* Center the text inside Clip hay / Xem nhiều nhất navigation buttons. */
    #header > .site-header #primary-nav .menu li a[data-nav-key="hot"],
    #header > .site-header #primary-nav .menu li a[data-nav-key="most"] {
        justify-content: center !important;
        text-align: center !important;
    }
    #header > .site-header #primary-nav .menu li a[data-nav-key="hot"] .icon,
    #header > .site-header #primary-nav .menu li a[data-nav-key="most"] .icon {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Server: selected only after an actual desktop click; clear on outside click. */
    #video-actions .video-server.server-touch-active,
    #video-actions li.video-server.server-touch-active {
        background: #9A2C2C !important;
        border-color: #9A2C2C !important;
        color: #fff !important;
    }
    #video-actions .video-server.server-touch-active .server {
        color: #fff !important;
    }
}


/* HOLICLIP V20 - softer red UI refinement
   Only visual colors are changed here. Interaction logic remains untouched.
*/
@media (min-width: 901px) {
  /* Main navigation active state */
  .site-header .nav-link.active,
  .site-header .nav-link:hover.active,
  .site-header .menu-item.active,
  .site-header .menu-item.selected,
  .site-header a.active {
    background: #9A2C2C !important;
    border-color: #9A2C2C !important;
  }

  /* Server selected state */
  .server-list .server-touch-active,
  .server-list .server-touch-active.active,
  .server-list .bt_active.server-touch-active {
    background: #9A2C2C !important;
    border-color: #9A2C2C !important;
  }
}

/* Search control - softer red, including button/focus */
.search-box button,
#search-box button,
.search-form button,
.search-btn,
input[type="submit"].search-btn {
  background: #9A2C2C !important;
  border-color: #9A2C2C !important;
}

.search-box button:hover,
#search-box button:hover,
.search-form button:hover,
.search-btn:hover,
input[type="submit"].search-btn:hover,
.search-box button:focus,
#search-box button:focus,
.search-form button:focus,
.search-btn:focus {
  background: #9A2C2C !important;
  border-color: #9A2C2C !important;
}

/* Date filters: neutral by default; softer red only when active */
.date-filter .active,
.date-filter a.active,
.date-filter button.active,
.filter-date .active,
.filter-date a.active,
.filter-date button.active,
.sort-filter .active,
.sort-filter a.active,
.sort-filter button.active {
  background: #9A2C2C !important;
  border-color: #9A2C2C !important;
}

/* Any existing active red accent used by the three main desktop tabs */
.nav-tabs .active,
.nav-tabs a.active,
.nav-tabs button.active {
  background: #9A2C2C !important;
  border-color: #9A2C2C !important;
}

/* Touch/click feedback should also stay soft red */
button:active,
a:active {
  --soft-red-active: #9A2C2C;
}



/* V20 final: center only Clip hay and Xem nhiều nhất labels */
@media (min-width: 901px) {
  .site-header .nav-link,
  .site-header .menu-item,
  .site-header .nav-item {
    text-align: center !important;
  }

  .site-header .nav-link .label,
  .site-header .menu-item .label,
  .site-header .nav-item .label {
    text-align: center !important;
  }

  /* Keep icon + text horizontally aligned while centering the whole item */
  .site-header .nav-link,
  .site-header .menu-item,
  .site-header .nav-item {
    justify-content: center !important;
    align-items: center !important;
  }
}

/* V20 FINAL SERVER TOUCH FIX
   Desktop only: neutral by default/hover, soft red only after click.
*/
@media (min-width: 901px) {
  #video-actions .video-server,
  #video-actions .video-server.bt_normal {
    background: #2b2b2b !important;
    border-color: transparent !important;
    color: #dadada !important;
  }

  #video-actions .video-server:hover,
  #video-actions .video-server:focus,
  #video-actions .video-server:active {
    background: #2b2b2b !important;
    color: #dadada !important;
  }

  #video-actions .video-server.server-touch-active {
    background: #9A2C2C !important;
    border-color: #9A2C2C !important;
    color: #fff !important;
  }

  #video-actions .video-server.server-touch-active:hover,
  #video-actions .video-server.server-touch-active:focus {
    background: #9A2C2C !important;
    border-color: #9A2C2C !important;
    color: #fff !important;
  }
}

/* V20 SERVER TOUCH - FINAL OVERRIDE (desktop only) */
@media screen and (min-width: 901px) {
    #video-actions li.video-server.server-touch-active,
    #video-actions .video-server.server-touch-active,
    #video-actions li[id^="server"].video-server.server-touch-active {
        background: #9A2C2C !important;
        background-color: #9A2C2C !important;
        border: 1px solid #9A2C2C !important;
        color: #fff !important;
        box-shadow: none !important;
    }
    #video-actions li.video-server.server-touch-active:hover,
    #video-actions .video-server.server-touch-active:hover {
        background: #9A2C2C !important;
        background-color: #9A2C2C !important;
    }
    #video-actions li.video-server:not(.server-touch-active):hover,
    #video-actions .video-server:not(.server-touch-active):hover {
        background: #1b1f23 !important;
        background-color: #1b1f23 !important;
        border-color: #272c31 !important;
    }
}


/* SERVER DESKTOP REAL FIX */
@media (min-width: 901px) {
  .server-touch-active {
    background-color: #9A2C2C !important;
    border-color: #9A2C2C !important;
    color: #fff !important;
  }
  .server-touch-active * {
    color: #fff !important;
  }
  .server-list .server-touch-active,
  .server-list a.server-touch-active,
  .server-list button.server-touch-active,
  .server-item.server-touch-active,
  .server-btn.server-touch-active {
    background-color: #9A2C2C !important;
    border-color: #9A2C2C !important;
  }
  .server-list a:hover:not(.server-touch-active),
  .server-list button:hover:not(.server-touch-active),
  .server-item:hover:not(.server-touch-active),
  .server-btn:hover:not(.server-touch-active) {
    background-color: inherit !important;
    border-color: inherit !important;
  }
}

/* FINAL SERVER CLICK STATE - desktop only */
@media (min-width: 901px) {
  .server-touch-active,
  .server-click-active {
    background: #9A2C2C !important;
    background-color: #9A2C2C !important;
    border-color: #9A2C2C !important;
    color: #fff !important;
  }
  .server-touch-active *,
  .server-click-active * {
    color: #fff !important;
  }
  .server-list a.server-touch-active:hover,
  .server-list button.server-touch-active:hover,
  .server-item.server-touch-active:hover,
  .server-btn.server-touch-active:hover {
    background: #9A2C2C !important;
    background-color: #9A2C2C !important;
    border-color: #9A2C2C !important;
  }
}

@media (min-width: 901px) {
  li.video-server.server-touch-active,
  li.video-server.server-click-active {
    background: #9A2C2C !important;
    background-color: #9A2C2C !important;
    border-color: #9A2C2C !important;
    color: #fff !important;
  }
  li.video-server.server-touch-active .server,
  li.video-server.server-click-active .server { color:#fff !important; }
}

@media (min-width: 901px) {
  li.video-server.server-click-active,
  li.video-server.server-touch-active {
    background:#9A2C2C !important;
    background-color:#9A2C2C !important;
    border-color:#9A2C2C !important;
    color:#fff !important;
  }
  li.video-server.server-click-active .server,
  li.video-server.server-touch-active .server { color:#fff !important; }
}

@media (min-width: 901px) {
  li.video-server.server-click-active,
  li.video-server.server-touch-active {
    background-color:#9A2C2C !important;
    border-color:#9A2C2C !important;
    color:#fff !important;
  }
  li.video-server.server-click-active .server,
  li.video-server.server-touch-active .server { color:#fff !important; }
}

@media (min-width: 901px) {
  li.video-server.server-click-active,
  li.video-server.server-touch-active {
    background-color:#9A2C2C !important;
    border-color:#9A2C2C !important;
    color:#fff !important;
  }
  li.video-server.server-click-active .server,
  li.video-server.server-touch-active .server { color:#fff !important; }
}

/* FINAL V20 SERVER SELECTED STATE - desktop only */
@media (min-width: 901px) {
  #video-actions .video-server.server-click-active,
  #video-actions .video-server.server-touch-active {
    background: #9A2C2C !important;
    background-color: #9A2C2C !important;
    border-color: #9A2C2C !important;
    color: #fff !important;
  }
  #video-actions .video-server.server-click-active .server,
  #video-actions .video-server.server-touch-active .server {
    color: #fff !important;
  }
}

@media (min-width:901px){
#video-actions .video-server[data-desktop-selected]{background:#9A2C2C!important;background-color:#9A2C2C!important;border-color:#9A2C2C!important;color:#fff!important}
#video-actions .video-server[data-desktop-selected] .server{color:#fff!important}
}


/* ===== V22 CATEGORY ACTIVE + SECTION HEADING ALIGNMENT =====
 * Category buttons use the same red active treatment as the top navigation.
 * The active state is applied only to the selected/current category.
 */
#category-nav .category-nav-item.category-selected,
#category-nav .category-nav-item.category-selected:hover,
#category-nav .category-nav-item.category-selected:focus,
#category-nav .category-nav-item.category-selected:active {
    background: #9A2C2C !important;
    background-color: #9A2C2C !important;
    border-color: #9A2C2C !important;
    color: #fff !important;
}
#category-nav .category-nav-item.category-selected .category-nav-content,
#category-nav .category-nav-item.category-selected .category-nav-label {
    color: #fff !important;
}

/* Keep section titles visually balanced like CLIP HAY / XEM NHIỀU NHẤT. */
#container > #page-title,
#video-list > h2.breadcrumb,
#container .page-section-title {
    text-align: center !important;
    padding-left: 0 !important;
    border-left: 0 !important;
}


/* ===== V28 DESKTOP MOVIE GRID GAP FIX =====
 * The old desktop layout used floated .video-item cards. Because card
 * heights can differ (image ratio/title/content), a later card could be
 * pushed below a taller card and leave large empty holes in the row.
 * Use CSS Grid on desktop so every card occupies the next available cell.
 * Mobile CSS is intentionally untouched.
 */
@media (min-width: 901px) {
    #video-list {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        align-items: start !important;
        width: 100% !important;
    }

    #video-list > .video-item {
        width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    #video-list > h2.breadcrumb {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Keep the grid usable on narrower desktop/tablet widths. */
@media (min-width: 901px) and (max-width: 1100px) {
    #video-list {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
