/* RRDYW pure-PHP layout helpers */

/* Search ajax dropdown */
#result {
    margin-top: 20px;
    background-color: #e0d6d6;
    list-style-type: none;
    width: 500px;
    max-width: 92vw;
    position: absolute;
    top: 32px;
    z-index: 100;
    padding-left: 0;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#result a {
    color: #333;
    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;
}
#result .rowsearch {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 8px;
}
#result .rowsearch p {
    margin-bottom: 1px;
}
.rowsearch:hover {
    background-color: #ece4e4;
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(232, 204, 204, 0.2);
    z-index: 1;
    max-height: 300px;
    overflow: auto;
    padding: 0;
    list-style: none;
}
.dropdown {
    position: relative;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content .dropdown-item,
.dropdown-content a {
    display: block;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}
.dropdown-content a:hover {
    background: #f5f0f0;
}

/* Ads */
.rr-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;
}
.rr-ad-popup-box {
    position: relative;
    max-width: 520px;
    width: 100%;
}
.rr-ad-popup-box img,
.rr-ad-catfish img {
    width: 100%;
    display: block;
    border-radius: 4px;
}
.rr-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;
}
.rr-ad-catfish {
    position: fixed;
    z-index: 99990;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, 94vw);
}

/* Hero / recommended slider */
.rr-swiper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #111;
}
.rr-swiper-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}
.rr-swiper-slide {
    min-width: 100%;
    flex: 0 0 100%;
}
.rr-swiper .banner.dymrslide {
    display: block;
    position: relative;
    min-height: 280px;
    height: 42vw;
    max-height: 420px;
    background-size: cover !important;
    background-position: center !important;
}
.rr-swiper .txt-info {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 3;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.rr-swiper .txt-info .name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}
.rr-swiper .txt-info .info {
    margin: 0;
    opacity: 0.9;
}
.rr-swiper .focus_leftshode,
.rr-swiper .focus_rightshode,
.rr-swiper .focus_topshode,
.rr-swiper .focus_bottomshode {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.rr-swiper .focus_leftshode,
.rr-swiper .focus_rightshode {
    top: 0;
    bottom: 0;
    width: 80px;
}
.rr-swiper .focus_leftshode {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,.55), transparent);
}
.rr-swiper .focus_rightshode {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,.55), transparent);
}
.rr-swiper .focus_topshode,
.rr-swiper .focus_bottomshode {
    left: 0;
    right: 0;
    height: 70px;
}
.rr-swiper .focus_topshode {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.4), transparent);
}
.rr-swiper .focus_bottomshode {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
}
.rr-swiper-prev,
.rr-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 36px;
    cursor: pointer;
    padding: 0;
}
.rr-swiper-prev { left: 10px; }
.rr-swiper-next { right: 10px; }
.rr-swiper-prev:hover,
.rr-swiper-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Player */
#player-wrapper,
.stui-player__video {
    position: relative;
    background: #000;
    min-height: 210px;
    width: 100%;
}
#player-wrapper iframe,
#player-wrapper video,
#player-wrapper #jwplayer,
.stui-player__video iframe,
.stui-player__video video {
    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 > .rr-tvc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
@media (min-width: 768px) {
    #player-wrapper,
    #player-wrapper iframe,
    #player-wrapper video {
        min-height: 420px;
    }
}

/* TVC pre-roll */
.rr-tvc {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #000;
}
.rr-tvc video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.rr-tvc-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.rr-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;
}

/* Episode / server active */
.activeplay {
    background-color: #FF9900 !important;
    color: #FFFFFF !important;
    border: 1px solid #FF9900 !important;
}
.active-server {
    background: #d9a0a0 !important;
    color: #FFF !important;
}
.playactive {
    color: #FFF !important;
    background: #c92626 !important;
}
#streaming-sv,
.streaming-server {
    cursor: pointer !important;
}
.streaming-server.tag-link {
    display: inline-block;
    background: #303033;
    color: #FFF;
    padding: 10px;
    border-radius: 10px;
    margin: 5px;
    text-decoration: none;
}

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

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

/* Rating block */
.rating-content {
    text-align: center;
}
.stui-content__detail .play-btn .btn {
    margin-right: 8px;
    margin-bottom: 6px;
}

/* Footer */
.stui-foot {
    padding: 20px 0 30px;
    font-size: 13px;
    line-height: 1.6;
    color: #999;
}
.stui-foot center p {
    margin: 6px 0;
}

/* Mobile tweaks */
@media (max-width: 767px) {
    #result {
        width: 100%;
        left: 0;
    }
    .rr-swiper .banner.dymrslide {
        min-height: 180px;
        height: 52vw;
    }
    .rr-swiper .txt-info .name {
        font-size: 16px;
    }
}
