﻿.live-indicator {
    display: inline-flex;
    align-items: center;
    background-color: #cc0000;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    animation: blink-animation 1s steps(5, start) infinite;
}


/* Red circle next to the LIVE text */
.live-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.2s infinite ease-in-out;
}


/* Pulse animation for the red circle */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}

.game-result-team-label-top::before {
    border-color: unset !important;
}

.live_container {
    max-width: 700px;
    margin: auto;
    padding: 30px;
}

.live_header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    border: 2px solid #0f0b25; /* Viền cho trường tên giải đấu và điểm số */
    border-radius: 5px;
    background-color: #0f0b25; /* Nền cho header */
    color: #fff; /* Màu chữ trắng */
}

.live_tournament-name, .live_match-score {
    font-size: 18px;
    font-weight: bold;
}

    .live_match-score span {
        color: #fff; /* Màu chữ trắng cho điểm số */
    }

table#scoreboardLive {
    width: 100%;
    border-collapse: collapse;
}

    table#scoreboardLive td {
        border: none; /* Bỏ viền cho ô bảng */
        padding: 3px;
        text-align: center;
    }

.live_round-header {
    width: 30%;
    background-color: #0f0b25 !important; /* Nền trong suốt màu cam */
    font-weight: bold; /* Đậm chữ */
    color: white; /* Màu chữ cam */
    text-align: center; /* Canh giữa */
    vertical-align: middle; /* Canh giữa theo chiều dọc */
}

.live_player-header {
    width: 200px;
    color: #333; /* Màu chữ tối cho tên cơ thủ */
}

.live_ball-header {
    width: 10%;
}

.live_ball-icon {
    color: #0f0b25; /* Màu của viên bi */
}

.image-container {
    position: relative; /* Đặt vị trí cho thẻ div chứa hình ảnh */
}

    .image-container img {
        display: block; /* Đảm bảo không có khoảng trống bên dưới hình ảnh */
        width: 100%; /* Tùy chỉnh kích thước hình ảnh nếu cần */
        height: auto; /* Đảm bảo tỷ lệ hình ảnh */
    }

.overlay-text {
    position: absolute; /* Vị trí tuyệt đối để căn giữa */
    top: 50%; /* Đặt ở giữa theo chiều dọc */
    left: 50%; /* Đặt ở giữa theo chiều ngang */
    transform: translate(-50%, -50%); /* Căn giữa chính xác */
    color: black; /* Màu sắc của văn bản */
    text-align: center; /* Căn giữa văn bản */
}


/* Container cho bảng điểm (điều chỉnh vị trí và kích thước theo kích cỡ màn hình) */
#scoreboardContainer {
    position: absolute;
    top: 10px; /* Cách lề trên 10px */
    left: 10px; /* Cách lề trái 10px */
    z-index: 10;
    border-radius: 8px;
    max-width: 200px; /* Đặt kích thước tối đa cho bảng */
    width: 100%; /* Đảm bảo nó không vượt quá kích thước của cha */
    box-sizing: border-box;
}

/* Thích ứng cho các màn hình nhỏ hơn */
@media screen and (max-width: 768px) {
    #scoreboardContainer {
        top: 5px; /* Giảm khoảng cách lề */
        left: 5px;
        padding: 5px; /* Giảm padding cho bảng */
        max-width: 150px; /* Giảm kích thước tối đa cho màn hình nhỏ */
    }

    #scoreboardLive {
    }

        #scoreboardLive .live_score-header {
        }

        #scoreboardLive .live_round-header {
        }
}

/* Thích ứng cho màn hình rất nhỏ, ví dụ điện thoại */
@media screen and (max-width: 480px) {
    #scoreboardContainer {
        top: 0; /* Đưa bảng sát góc */
        left: 0;
        padding: 3px; /* Giảm padding hơn nữa */
        max-width: 120px; /* Giảm kích thước tối đa hơn nữa */
    }

    #scoreboardLive {
    }
}


#scoreboardLive {
    position: absolute;
    top: 2px; /* Có thể điều chỉnh cho phù hợp với yêu cầu */
    left: 2px; /* Có thể điều chỉnh cho phù hợp với yêu cầu */
    background-color: rgba(255, 255, 255, 0.8); /* Làm mờ nền */
    padding: 10px;
    border-radius: 5px;
    z-index: 10; /* Đảm bảo nó hiển thị trên video */
    max-width: 300px; /* Thiết lập chiều rộng tối đa */
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    /* Responsive text và padding cho bảng */
    #scoreboardLive td {
        font-size: 14px;
        padding: 8px;
    }

/* Flexbox để căn giữa các phần tử bên trong cột điểm số */
.live_score-header div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Căn chỉnh hình ảnh và văn bản trong cột bóng */
.image-container {
    position: relative;
}

    .image-container img {
        width: 25px;
        height: 25px;
    }

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: black;
    font-weight: bold;
}

/* Media queries cho màn hình nhỏ */
@media (max-width: 768px) {
    #scoreboardLive {
        max-width: 50%;
        left: 5px;
        right: 5px;
        padding: 5px;
    }

        #scoreboardLive td {
            font-size: 10px;
            padding: 4px;
        }

    .overlay-text {
        font-size: 10px;
    }

    .live_ball-header {
        min-width: 30px;
    }
}

/* Media queries cho màn hình rất nhỏ (điện thoại di động) */
@media (max-width: 480px) {
    #scoreboardLive {
        max-width: 50%;
        left: 2px;
        right: 2px;
        padding: 3px;
    }

        #scoreboardLive td {
            font-size: 8px;
            padding: 2px;
        }

    .overlay-text {
        font-size: 8px;
    }

    .live_ball-header {
        min-width: 30px;
    }
}

/* Điều chỉnh kích thước của live_score-header */
.live_score-header {
    width: 50px; /* Giới hạn chiều rộng cho phù hợp với hàng chục */
    text-align: center;
    vertical-align: middle;
    padding: 5px; /* Tăng/giảm padding nếu cần */
    color: #333;
}

    .live_score-header > div {
        background-color: #0f0b25;
        color: white;
    }

    /* Điều chỉnh kích thước font của điểm */
    .live_score-header span {
        font-size: 16px; /* Chọn kích thước font phù hợp cho hàng chục */
        font-weight: bold;
    }



/* Responsive cho màn hình nhỏ hơn */
@media (max-width: 768px) {
    .live_score-header {
        min-width: 30px;
    }

        .live_score-header span {
            font-size: 14px; /* Giảm font-size cho màn hình nhỏ */
        }
}

@media (max-width: 480px) {
    .live_score-header {
        width: 30px; /* Chiều rộng hẹp hơn cho điện thoại di động */
    }

        .live_score-header span {
            font-size: 12px; /* Font nhỏ hơn cho điện thoại */
        }
}

video::-webkit-media-controls-fullscreen-button {
    display: none;
}

#video-chat-container:-webkit-full-screen {
    --bs-gutter-x: 0;
}

#video-chat-container:fullscreen {
    --bs-gutter-x: 0;
}

#video-chat-container:-webkit-full-screen video {
    height: 100vh;
    width: 100vw;
}

#video-chat-container:fullscreen video {
    height: 100vh;
    width: 100vw;
}

#top-overlay {
    position: absolute;
    top: 0;
    left: 0;
}

#bottom-overlay {
    /*position: absolute;
        bottom: 0;
        left: 0;*/
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8); /* Màu nền có độ trong suốt */
    z-index: 1000; /* Đảm bảo nó nằm trên các phần tử khác */
}

#video-chat-container:-webkit-full-screen #top-overlay,
#video-chat-container:-webkit-full-screen #bottom-overlay {
    position: fixed;
}

#video-chat-container:fullscreen #top-overlay,
#video-chat-container:fullscreen #bottom-overlay {
    position: fixed;
}

#video-chat-container:-webkit-full-screen #play-btn,
#video-chat-container:-webkit-full-screen #mute-btn {
    background: rgba(0,0,0,0.3);
    color: #ffffff;
    border: 1px solid #ffffff;
}

#video-chat-container:fullscreen #play-btn,
#video-chat-container:fullscreen #mute-btn {
    background: rgba(0,0,0,0.3);
    color: #ffffff;
    border: 1px solid #ffffff;
}

#video-chat-container:-webkit-full-screen #chat {
    border: none;
    background-color: rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 400px;
}

#video-chat-container:fullscreen #chat {
    border: none;
    background-color: rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 400px;
}



#video-chat-container:-webkit-full-screen #chat-container {
    height: 80vh;
    position: fixed;
    top: calc(50vh - (80vh / 2));
    right: 10px;
    color: #ffffff;
}

#video-chat-container:fullscreen #chat-container {
    height: 80vh;
    position: fixed;
    top: calc(50vh - (80vh / 2));
    right: 10px;
    color: #ffffff;
}

@media (max-width: 575.98px) {

    #video-chat-container:-webkit-full-screen #chat {
        max-width: 200px;
        width: 200px;
    }

    #video-chat-container:fullscreen #chat {
        max-width: 200px;
        width: 200px;
    }

    #video-chat-container:-webkit-full-screen #chat-input-container {
        width: 200px;
    }

    #video-chat-container:fullscreen #chat-input-container {
        width: 200px;
    }
}

#video-chat-container:-webkit-full-screen #chat-input,
#video-chat-container:-webkit-full-screen #submit-chat {
    background: rgba(0,0,0,0.3);
    color: #ffffff;
    border: 1px solid rgb(var(--bs-white-rgb));
}

#video-chat-container:fullscreen #chat-input,
#video-chat-container:fullscreen #submit-chat {
    background: rgba(0,0,0,0.3);
    color: #ffffff;
    border: 1px solid rgb(var(--bs-white-rgb));
}

#video-chat-container:-webkit-full-screen #chat-input::placeholder {
    color: #ffffff;
}

#video-chat-container:fullscreen #chat-input::placeholder {
    color: #ffffff;
}
