/* HHTQ pure-PHP layout helpers */

/* Search ajax dropdown */
#result {
    margin-top: 20px;
    background-color: #333333;
    list-style-type: none;
    width: 600px;
    max-width: 92vw;
    position: absolute;
    top: 32px;
    z-index: 100;
    padding-left: 0;
    max-height: 420px;
    overflow-y: auto;
}
#result a {
    color: #ddd;
    text-decoration: none;
    display: block;
}
.column {
    float: left;
    padding: 5px;
}
.left {
    text-align: center;
    width: 20%;
}
.right {
    width: 80%;
}
.rowsearch:after {
    content: "";
    display: table;
    clear: both;
}
.rowsearch:hover {
    background-color: #282626;
}

/* Ads */
.hhtq-ad-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hhtq-ad-popup-box {
    position: relative;
    max-width: 520px;
    width: 100%;
}
.hhtq-ad-popup-box img,
.hhtq-ad-catfish img {
    width: 100%;
    display: block;
    border-radius: 4px;
}
.hhtq-ad-close {
    position: absolute;
    right: -8px;
    top: -8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}
.hhtq-ad-catfish {
    position: fixed;
    z-index: 99990;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, 94vw);
}

/* Player */
#player-area {
    position: relative;
    background: #000;
    min-height: 210px;
    width: 100%;
}
#player-area iframe,
#player-area video,
#player-area #jwplayer {
    width: 100%;
    height: 100%;
    min-height: 210px;
    border: 0;
    display: block;
}
.embed-responsive {
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    overflow: hidden;
}
.embed-responsive > iframe,
.embed-responsive > video,
.embed-responsive > #jwplayer,
.embed-responsive > .hhtq-tvc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
@media (min-width: 768px) {
    #player-area,
    #player-area iframe,
    #player-area video {
        min-height: 420px;
    }
}

/* TVC pre-roll */
.hhtq-tvc {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #000;
}
.hhtq-tvc video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hhtq-tvc-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.hhtq-tvc button {
    position: absolute;
    right: 14px;
    bottom: 42px;
    z-index: 3;
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
}

/* Streaming server buttons */
.streaming-server.btn-warm,
.streaming-server.active {
    background-color: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
}

/* Pagination */
.hhtq-pagination {
    margin: 20px 0;
    text-align: center;
}
.hhtq-pagination li {
    display: inline-block;
    margin: 0 3px;
}
.hhtq-pagination li a {
    display: inline-block;
    min-width: 36px;
    padding: 6px 10px;
    background: #2a2a2a;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
}
.hhtq-pagination li.active a {
    background: #ff6600;
    color: #fff;
}

/* Info / player helpers */
.btn_watch {
    display: block;
    margin-top: 10px;
    text-align: center;
}
.imdbpost {
    margin-top: 8px;
}
.myui-content__thumb .myui-vodlist__thumb {
    display: block;
}
.quality1 {
    color: #ff6600;
}
.myui-player__operate .btn {
    margin-right: 6px;
    margin-bottom: 4px;
}

/* Flickity hot slider spacing */
#index-hot .flickity {
    min-height: 200px;
}
#index-hot .myui-vodlist__box {
    margin-bottom: 0;
}

/* List empty state */
.hhtq-empty {
    padding: 24px;
    color: #aaa;
    text-align: center;
}
