﻿/* Quy tắc chung */
a {
    text-decoration: none;
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.btn-danger {
    color: #fff;
    background-color: #d9534f;
    border-color: #d9534f;
}

.btn-warning {
    color: #fff;
    background-color: #f0ad4e;
    border-color: #f0ad4e;
}

p {
    margin: 0;
}

/* Player chính */

#player,
#player-html5 {
    position: relative;
}

#player-message {
    background-color: #000;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
}

    #player-message h3 {
        color: #fff;
        font-size: 1.5vw;
        text-transform: uppercase;
        text-align: center;
    }

    #player-message a {
        font-size: 1vw;
        text-transform: uppercase;
    }

.jw-wrapper {
    background-color: transparent !important;
}

/* Thanh điều khiển JW Player */

.jw-controlbar {max-height:40px !important;}
    .jw-controlbar .jw-text-live {font-size:12px;font-weight:400;}
    .jw-controlbar .jw-slider-time {
        display: none !important;
    }
    .jw-controlbar.jw-reset {
        background: rgba(0,0,0,0.5)
    }


.jwplayer .jw-controlbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* Điều chỉnh volume slider */


.jw-controlbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

    .jw-controlbar .jw-overlay {
        position: absolute;
        top: 100%; 
        bottom: auto;
        left: 50%;
        margin: 0;
        min-height: 44px;
        min-width: 44px;
        opacity: 0;
        pointer-events: none;
        transition: 150ms cubic-bezier(0, .25, .25, 1);
        transition-property: opacity, visibility;
        transition-delay: 0s, 150ms;
        -webkit-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
        width: 100%;
        z-index: 1;
    }

        .jw-controlbar .jw-overlay .jw-volume-tip {
            height: 120px; /* Đủ không gian cho slider */
            top: 0;
            bottom: auto;
        }


.jw-icon-fullscreen {
    z-index: 999999999;
    position: relative;
}

/* Quảng cáo và banner */
#player-html5 .adsPlayerBanner,
#player .show-ads-banner {
    position: absolute;
    top: 0;
    color: #000;
    text-align: center;
    width: 50%;
    margin-left: 25%;
    z-index: 99;
}

    #player-html5 .adsPlayerBanner img,
    #player .show-ads-banner img,
    .ads-bottom-video img,
    .adsInPlayer a img,
    .banner-bottom img {
        width: 100%;
    }

#player .show-ads-banner {
    bottom: 60px;
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
    display: table;
    margin: 0 auto;
}

    #player .show-ads-banner img {
        max-height: 85px;
        max-width: 100%;
    }

#player-html5 .adsInPlayer {
    position: absolute;
    bottom: 12vh;
    color: #000;
    text-align: center;
    width: 68%;
    margin-left: 16%;
}

.close-ads {
    position: absolute;
    right: -5px;
    top: -5px;
    background: #fff;
    width: 25px;
    height: 25px;
    text-align: center;
    font-size: 16px;
    border-radius: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
}

.close-ads-player {
    float: right;
    bottom: -6px;
    position: relative;
    padding: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 1.4em;
    font-weight: 700;
    z-index: 100000000;
}

/* Nút và button */
#button-right {
    position: absolute;
    right: 0;
    bottom: 20vh;
    float: left;
}

#player-html5 #button-right a {
    padding: 5px 15px;
    font-size: 16px;
    background-color: red;
    border-radius: 6px;
    display: block;
    float: left;
    margin-right: 2px;
    color: #fff;
}

#player-html5 .buttonDatCuoc {
    background-color: red;
    border-radius: 6px;
    display: block;
    padding: 5px 15px;
    color: #fff;
    position: absolute;
    bottom: 19vh;
    left: 2vh;
}

#player-html5 a.right {
    right: 2vh;
    left: unset;
}

#player-html5 a#kuviet {
    right: 18vh;
}

.buttonSkipAds {
    position: absolute;
    z-index: 999;
    bottom: 56px;
    right: 0.75em;
    color: #fffc;
    background-color: #000;
    border: 1px solid #333;
    font-size: 0.8em;
    font-weight: 700;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.aHrefAff {
    width: 100%;
    height: 85%;
    z-index: 99;
    display: block;
    position: absolute;
    top: 0;
}

.odds-button2 {
    position: absolute;
    top: 5px;
    right: 5px;
}
    .odds-button2 img {max-width:120px;}

    .odds-button {
        position: absolute;
        bottom: 40px;
        right: 0px;
        z-index: 111;
    }

    .odds-button a {
        background-color: #e81226;
        border-radius: 4px;
        padding: 6px 10px;
        color: #fff;
        margin-right: 9px;
        font-weight: 600;
        font-size: 1rem;
        max-width: 85px;
        box-shadow: 0px 0px 3px #fff;
    }

        .odds-button a:last-child {
            background-color: #0f4cd9;
        }

.banner-bottom {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 11;
}

    .banner-bottom img {
        opacity: 0.8;
        display:block;
    }

/* Box Top và Bottom */
.boxTop,
.boxBot {
    position: absolute;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

.boxTop {
    top: 0;
}

    .boxTop span,
    .buttonFabet span,
    .buttonNCL span {
        color: #ff0;
    }

.boxBot {
    bottom: 0;
    top: auto;
}

    .boxTop .btn,
    .boxBot .btn,
    .AdBtn .btn {
        font-size: 1vw !important;
        padding: 0.3vw !important;
        font-weight: 700 !important;
    }

.boxTop .btn-warning {
    color: #000;
}

/* Button Fabet và NCL */
#player-html5 .buttonFabet {
    background-color: rgba(0, 0, 0, 0.4);
    display: block;
    color: #fff;
    top: 0;
    position: absolute;
    font-weight: 700;
    width: 100%;
    text-align: center;
    line-height: 21px;
    height: 21px !important;
    opacity: 0.8;
}

#player-html5.jw-flag-user-inactive .buttonFabet {
    bottom: 8vh;
}

.buttonNCL {
    color: #fff;
    bottom: 0;
    position: absolute;
    font-weight: 700;
    width: 100%;
    text-align: center;
    padding: 1px;
    background: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    opacity: 1;
    font-size: 12px;
}

    .buttonNCL b {
        font-weight: 400;
    }



.banner-bottom img {
    width: 100% !important;
    height: auto !important;
    max-height: 50px;
}

.stream-list {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0 0 5px 0;
    padding: 0;
}
    .stream-list li {
        list-style: none;
    }

    .stream-list a.active {
        color: #000;
        background: #EFB732;
        box-shadow: 0px 0px 5px #fff;
    }

    .stream-list a {
        padding: 4px 10px;
        border-radius: 4px;
        white-space: nowrap;
    }


/* Media Queries */
@media only screen and (max-width: 991px) {
    .odds-button a {
        font-size: 1em;
    }

    .boxTop .btn,
    .boxBot .btn,
    .AdBtn .btn {
        font-size: 1.6vw !important;
    }

    #player-message h3 {
        font-size: 2.5vw;
    }

    #player-message #share-now {
        font-size: 2.5vw;
        padding: 5px 10px;
    }

    #player .show-ads-banner {
        bottom: 9.75vh;
    }

    .a-v9 {
        font-size: 2vw;
    }

        .a-v9 img,
        .a-v9 p,
        .a-v9 span {
            max-width: 9.75vw;
            font-size: 2vw;
        }

        .a-v9 a.btn {
            width: 9.75vw;
            height: 3.625vw;
            font-size: 1.425vw !important;
        }
}

@media only screen and (max-width: 767px) {
    .boxTop .btn,
    .boxBot .btn,
    .AdBtn .btn {
        font-size: 2vw !important;
    }

    .boxBot,
    .boxTop {
        font-size: 1.7vw;
    }
}

@media only screen and (max-width: 640px) {
    #player-html5 .adsInPlayer {
        bottom: 40px;
    }

    #player-html5 .buttonFabet {
        font-size: 9px;
        bottom: 17vh;
    }

    #player-html5 .buttonNCL {
        font-size: 8px;
        bottom: 0;
        z-index: 0;
        padding: 0;
        height: 24px;
        line-height: 13px;
    }

    #player-html5 #button-right {
        bottom: 29px;
    }

        #player-html5 #button-right a {
            padding: 2px 5px;
            font-size: 9px;
        }

    #player-html5 a#kuviet {
        right: 35vh;
    }

    .close-ads-player {
        padding: 5px;
        font-size: 14px;
    }

    #player-message h3 {
        font-size: 3.5vw;
    }

    #player-message #share-now {
        font-size: 3.5vw;
    }
}

@media only screen and (max-width: 480px) {

    .banner-bottom img {
        height: 24px !important
    }


    #player .popup-ads-banner img,
    #player .popup-ads-banner iframe {
        height: auto;
        max-height: 210px;
        width: unset !important;
    }

    .odds-button {
        bottom: 18px;
        right: 0;
    }

        .odds-button a {
            padding: 5px 10px;
            font-size: 0.725em;
        }

}

@media only screen and (max-width: 390px) {

    .banner-bottom img {
        height: 22px !important
    }

    .odds-button a {
        padding: 5px 10px;
        font-size: 0.7em;
    }
}

@media only screen and (min-device-width: 970px) {
    #player .show-ads-banner img,
    #player .show-ads-banner iframe {
        height: 80px;
        width: 570px !important;
    }

    #player .popup-ads-banner img,
    #player .popup-ads-banner iframe {
        height: auto;
        max-height: 410px;
        max-width: 410px;
    }

    #player.jw-flag-fullscreen .popup-ads-banner img,
    #player.jw-flag-fullscreen .popup-ads-banner iframe {
        height: auto;
        max-height: 800px;
        max-width: 800px;
    }

    #player.jw-flag-fullscreen .odds-button {
        bottom: 140px;
        right: 30px;
    }

    .odds-button a {
        font-size: 1.25rem;
    }

    #player.jw-flag-fullscreen .odds-button a {
        font-size: 1.5rem;
        text-transform: uppercase;
    }

    #player.jw-flag-fullscreen .banner-bottom img {
       height:50px !important;
    }
}

@media only screen and (min-device-width: 480px) and (max-device-width: 970px) {
    #player .popup-ads-banner img,
    #player .popup-ads-banner iframe,
    #player.jw-flag-fullscreen .popup-ads-banner img,
    #player.jw-flag-fullscreen .popup-ads-banner iframe {
        height: auto;
        max-height: 500px;
        max-width: 500px;
    }
}
