/*
Theme Name: Giao Dien 32
Version: 1.0.0
Text Domain: giaodien32
*/

/* Touch devices */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Thumbnail aspect ratio từ plugin */
.video-image {
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    object-fit: cover;
    height: auto;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    position: absolute;
    z-index: 9999;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #1b1b1b;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-top: 2px;
    box-sizing: border-box;
    text-align: left;
    border-radius: 0 0 4px 4px;
}

.autocomplete-dropdown a {
    display: block;
    padding: 20px 12px;
    color: #e8ecf1;
    border-bottom: 1px solid #2b2b2b;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.autocomplete-dropdown a:last-child {
    border-bottom: none;
}

.autocomplete-dropdown a:hover {
    background: #a72720;
    color: #fff;
}

/* Custom Scrollbar for Autocomplete */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #1b1b1b;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #a72720;
    border-radius: 3px;
}

/* Hide search x button */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* ===== ORIGINAL CSS FROM HTML ===== */

blockquote,
body,
button,
code,
dd,
div,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
input,
legend,
li,
ol,
p,
pre,
td,
textarea,
th,
ul {
    margin: 0;
    padding: 0
}

a,
del,
ins {
    text-decoration: none
}

.lcol,
.video-list .video-image {
    float: left
}

#container,
.video-list {
    overflow: hidden
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

fieldset,
img {
    border: 0
}

address,
caption,
cite,
code,
dfn,
em,
i,
optgroup,
strong,
th,
var {
    font-style: none;
    font-weight: none
}

caption,
th {
    text-align: left
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: 700
}

q:after,
q:before {
    content: ""
}

abbr,
acronym {
    border: 0;
    font-variant: normal
}

sub,
sup {
    vertical-align: baseline
}

legend {
    color: #333
}

.breadcrumb span a,
a,
body {
    color: #dadada
}

button,
input,
optgroup,
option,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    outline: 0
}

.tags,
.video-box,
.video-info,
header {
    display: block
}

body {
    background: #2b2b2b;
    font-family: arial, sans-serif;
    font-size: small
}

#wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #1b1b1b
}

#notice,
.SC_TBlock,
.category-info,
.note,
.notice,
.status {
    background: #2b2b2b;
    line-height: 1.5em;
    padding: 5px
}

#video {
    margin: 0 5px
}

#secondary-nav .menu2 a:hover,
.type-list .type-video:hover,
a:hover {
    color: #fff
}

li {
    list-style: none
}

span.url {
    color: #de2600
}

span.url:hover {
    color: #a72720
}

img.video-image {
    width: 100%;
    /* height controlled by aspect-ratio in .video-image */
}

.clr {
    clear: both
}

.notice,
.pagenavi a,
.tags a,
.type-list .type-video {
    display: inline-block;
    margin-bottom: 5px
}

#notice,
.category-info,
.note {
    margin: 5px
}

.status {
    margin-top: 5px
}

.SC_TBlock {
    margin-top: 4px
}

#top {
    max-width: 600px;
    margin: 0 auto;
    background: #1b1b1b;
    border-bottom: 2px solid #2b2b2b
}

.logo:hover {
    opacity: 1
}

#pull,
#secondary-nav .menu2 {
    font-size: 14px;
    margin-left: 5px
}

#secondary-nav .menu2 a {
    color: #f90;
    padding: 5px;
    display: inline-block
}

#primary-nav .menu>li.current-menu-item>a {
    color: #f90
}

form.search {
    margin: auto;
    text-align: right
}

.search .searchTxt {
    display: inline-block;
    border: 1px solid #1b1b1b;
    padding: 4px;
    position: relative;
    margin-right: -4px;
    border-collapse: separate
}

.search .searchBtn {
    display: inline-block;
    background: #de2600;
    color: #fff;
    outline: 0;
    border: 1px solid #1b1b1b;
    padding: 4px;
    cursor: pointer
}

.breadcrumb,
.breadcrumb.video-title {
    text-transform: uppercase;
    border-bottom: 2px solid #2b2b2b;
    position: relative;
    font-weight: 700;
    line-height: 1.5em
}

.search .searchBtn:hover {
    background: #a72720
}

.breadcrumb {
    font-size: 14px;
    margin: 5px
}

.breadcrumb span a:hover {
    color: #fff;
    text-decoration: none
}

.breadcrumb.video-title {
    margin: 6px;
    padding-bottom: 3px;
    text-transform: none
}

.box {
    margin: 0
}

.video-list {
    position: relative;
    display: block;
    padding-bottom: 10px;
}

.video-list .ribbon {
    font-size: .9em;
    position: absolute;
    top: 0;
    border-left: 3px solid #ea4335;
    background: rgba(17, 17, 17, .6);
    padding-left: 4px;
    padding-right: 4px;
    margin-top: 2px;
    margin-left: 7px;
    color: #fff
}

.quality,
.quality:hover {
    border: 1px solid #2b2b2b
}

.video-name {
    font-size: 12px;
    font-weight: 700
}

#video-actions,
.footer-wrap {
    font-weight: 400;
    flex-wrap: wrap;
}

.video-rank {
    margin-left: 5px;
    position: absolute;
    top: 0;
    background: rgba(222, 38, 0, .8);
    padding: 2px 4px;
    color: #fff
}

.mobile {
    margin: 1px 0 5px;
    background: url(images/loading.html) center center no-repeat #191818
}

.video-player {
    padding-top: 56.25% !important;
    width: 100%;
    position: relative;
    background: #000;
    height: auto
}

.play-video .video .video-list {
    padding: 5px 10px 10px
}

.video-content,
.video-stats {
    display: inline-block
}

.content {
    line-height: 1.5em;
    margin: 5px;
}

.lcol {
    width: 105px
}

.rcol,
.under-player {
    width: 100%
}

#video-actions ul,
.type-list ul {
    margin-top: 0
}

#video-actions .video-server {
    cursor: pointer;
    padding: 5px 10px;
    margin: 0 3px 5px 0;
    display: inline-flex
}

#video-actions .rating,
#video-note,
.video-info .id,
span.views {
    padding: 5px;
    display: inline-flex
}

#video-actions .dislikes:hover,
#video-actions .likes:hover,
#video-actions .video-server:hover,
.bt_active,
.download:hover,
.quality:hover,
.tags a:hover {
    background: #a72720;
    color: #fff
}

span.dislikes:after,
span.likes:after,
span.rating:after {
    background-size: 14px;
    background-repeat: no-repeat;
    margin-left: 3px;
    width: 16px;
    content: ""
}

.bt_normal,
.download,
.quality,
.tags a {
    color: #dadada;
    background: #2b2b2b
}

#video-actions .dislikes,
#video-actions .likes {
    cursor: pointer;
    background: #2b2b2b;
    margin: 0 3px 5px 0;
    padding: 5px;
    display: inline-flex
}

#video-actions .rating {
    cursor: pointer;
    background: #2b2b2b
}

#video-note,
.video-info .id {
    background: #2b2b2b
}

.video-info .id.eye {
    padding-left: 22px;
    margin-left: 3px
}

.video-info .id.eye:before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background: url(../img/eye.svg) 0 0/16px no-repeat;
    position: absolute;
    margin-left: -19px
}

span.likes:after {
    background-image: url(../img/like.svg)
}

span.likes.active:after {
    background-image: url(../img/liked.svg)
}

span.dislikes:after {
    background-image: url(../img/dislike.svg)
}

span.dislikes.active:after {
    background-image: url(../img/disliked.html)
}

span.rating:after {
    background-image: url(../img/rating.svg)
}

span.views {
    cursor: pointer;
    background: #2b2b2b;
    margin-bottom: 5px;
    margin-right: 5px
}

span.views:before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background: url(../img/eye.svg) 0 0/15px no-repeat;
    margin-left: 2px
}

.type-list {
    cursor: pointer;
    margin-left: 5px;
    text-align: center;
}

.type-list .type-video {
    padding: 8px
}

.download-button {
    cursor: pointer;
    display: inline-flex
}

.download {
    width: 16px;
    padding: 5px 10px
}

a.download:before {
    content: "";
    position: absolute;
    background: url(../img/dl.html) 0 0/16px no-repeat;
    width: 25px;
    height: 14px
}

.quality {
    padding: 4px 5px;
    font-size: 15px;
    cursor: pointer;
    margin-right: 10px
}

.tags a {
    height: 20px;
    font: 400 11px/20px arial;
    padding: 0 5px;
    white-space: nowrap
}

.pagenavi {
    margin-top: 10px;
    text-align: center
}

.pagenavi a {
    border: 1px solid #dadada;
    padding: 5px 15px;
    margin-right: 5px
}

.pagenavi a.active {
    color: #fff;
    background: #666
}

footer {
    display: grid
}

.footer-wrap {
    font-size: 13px;
    padding: 5px;
    margin: 5px 5px 10px;
    background: #1b1b1b;
    line-height: 1.5em;
    border-top: 1px solid #2b2b2b;
    webkit-box-shadow: 0 0 10px rgba(120, 120, 120, 0.5);
    box-shadow: 0 0 10px rgba(120, 120, 120, .5)
}

.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%
}

#vlxx.jw-error {
    height: 56.25% !important
}

.jw-flag-small-player .jw-nextup-container,
.jw-flag-small-player .jw-nextup-container .jw-nextup,
.jw-icon.jw-icon-inline.jw-button-color.jw-reset.jw-icon-rewind.jw-icon-next,
.jw-rightclick {
    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-rewind.jw-button-color.jw-reset {
    visibility: hidden
}

/* Moved max-width: 320px block to correct cascade order */

@media only screen and (max-width:600px) {
    div#secondary-nav {
        display: inline
    }

    .video-name {
        line-height: 1.5em;
        height: 35px !important;
        display: -webkit-box;
        max-height: 35px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        white-space: normal;
        -webkit-box-orient: vertical;
        float: left;
        margin: 6px
    }

    .video-list {
        width: 50%;
        float: left
    }

    .video-list .video-image {
        width: calc(100% - 10px);
        margin-left: 5px;
    }

    .video-list .ribbon {
        margin-left: 5px
    }
}

@media only screen and (max-width:320px) {
    .video-list {
        width: 100%;
    }

    .video-list .video-image {
        width: 100%;
        margin-left: 0;
    }
}

@media only screen and (min-width:640px) {
    .logo {
        padding: 15px 0 10px 5px;
        opacity: .8
    }

    .video-name {
        line-height: 1.5em;
        height: 35px !important;
        display: -webkit-box;
        max-height: 35px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        white-space: normal;
        -webkit-box-orient: vertical;
        float: left;
        margin: 6px
    }

    .video-list {
        width: 25%;
        float: left
    }

    .video-list .video-image {
        width: calc(100% - 10px);
        margin-left: 5px
    }

    .video-list .video-list .video-image {
        margin-left: 5px;
    }

    #primary-nav {
        background: #111;
        text-transform: uppercase;
        border-top: none;
        padding: inherit;
        margin-bottom: 1px;
        webkit-box-shadow: 0 0 10px rgba(120, 120, 120, 0.5);
        box-shadow: 0 0 10px rgba(120, 120, 120, .5)
    }

    #primary-nav .menu {
        list-style: none;
        line-height: 1;
        margin-left: 12px;
        overflow: hidden;
        padding: 0;
        z-index: 999
    }

    #primary-nav .menu a {
        display: block;
        position: relative;
        text-decoration: none;
        z-index: 100
    }

    #primary-nav .menu li {
        float: left;
        width: auto;
        z-index: 999
    }

    #primary-nav .menu li a {
        color: #dadada;
        font-size: 14px;
        font-weight: 700;
        margin-right: 30px;
        padding: 10px 0;
        line-height: 20px;
        text-decoration: none
    }

    #primary-nav .menu li:hover a,
    .menu li:hover a:active {
        text-decoration: none;
        color: #de2600
    }
}

@media only screen and (max-width:639px) {

    #primary-nav,
    .logo {
        border-bottom: 2px solid #2b2b2b
    }

    #primary-nav .menu a:hover,
    #pull {
        color: #fff
    }

    div#secondary-nav {
        display: inline
    }

    .logo {
        text-align: center;
        padding: 10px 5px 5px;
        opacity: .8
    }

    #primary-nav {
        position: relative;
        font-size: 14px;
        text-transform: uppercase;
        overflow: hidden
    }

    #primary-nav .menu {
        height: 40px;
        border: 0;
        background: 0;
        box-shadow: none;
        line-height: 40px;
        font-weight: 700
    }

    #primary-nav .menu a {
        float: left;
        width: 33.3%;
        font-weight: 700;
        color: #dadada;
        text-align: center
    }

    #pull {
        display: inline-block;
        width: 100%;
        position: relative;
        background: url(images/select-arrow.html) right 0 center no-repeat #222;
        line-height: 40px;
        text-indent: 10px;
        font-size: 16px
    }

    #pull:hover {
        text-decoration: none
    }
}

.top-player {
    background: 0 0;
    padding: 0
}

.top-header {
    width: 100%;
    background: #2b2b2b;
    padding: 4px 0 2px
}

@media only screen and (max-width:639px) {
    #primary-nav {
        overflow: hidden !important;
        height: auto !important
    }

    #primary-nav .menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        padding: 8px 10px !important;
        margin: 0 !important;
        list-style: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none
    }

    #primary-nav .menu::-webkit-scrollbar {
        display: none
    }

    #primary-nav .menu li {
        float: none !important;
        width: auto !important;
        flex: 0 0 auto !important;
        display: block !important
    }

    #primary-nav .menu a {
        float: none !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 34px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        background: rgb(255 255 255 / .08) !important;
        color: #e8ecf1 !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: background 0.2s ease !important
    }

    #primary-nav .menu li.current-menu-item a,
    #primary-nav .menu li.current_page_item a {
        background: #ff4141 !important;
        color: #fff !important;
        box-shadow: 0 4px 10px rgb(255 65 65 / .25) !important
    }
}

#notice {
    width: 100% !important;
    padding: 10px !important;
    margin: 0 !important;
    line-height: 0 !important;
    text-align: right !important;
    overflow: visible !important;
    box-sizing: border-box !important
}

#notice form.search {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important
}

#notice .searchTxt {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 32px - 6px) !important;
    height: 36px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    background: rgb(255 255 255 / .08) !important;
    color: #e8ecf1 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    box-sizing: border-box !important
}

#notice .searchTxt::placeholder {
    color: rgb(232 236 241 / .6) !important
}

#notice .searchBtn {
    flex: 0 0 38px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    background-color: #ff4141 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M10 2a8 8 0 105.293 14.293l4.707 4.707 1.414-1.414-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
    color: transparent !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgb(255 65 65 / .25) !important;
    -webkit-appearance: none !important;
    appearance: none !important
}

#notice .searchBtn:active {
    transform: scale(.96)
}
/* Single Video Styles (Moved from single-video.php) */
.video-player {
    position: relative;
    padding-top: 0 !important;
    aspect-ratio: 16/9;
    background: #191818;
    overflow: hidden;
}
.video-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    border: 0;
    display: block;
    z-index: 1;
}
.bt_active {
    background: #a72720 !important;
    color: #fff !important;
}
#video-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 10px 5px;
}
#video-actions .left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
#video-actions ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
}
#video-actions .likes,
#video-actions .views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    background: #2b2b2b;
    cursor: pointer;
}
#video-actions .likes svg,
#video-actions .views svg {
    flex-shrink: 0;
}
#video-actions .likes:after,
#video-actions .views:before {
    display: none !important;
    content: none !important;
}
#video-actions .likes.liked {
    background: #a72720;
    color: #fff;
}
#video-actions .likes.liked svg {
    fill: currentColor;
}
.tags a {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    margin: 4px;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.video-suggest-list {
    overflow: hidden;
}
.load-more-wrapper {
    clear: both;
}
