/* Hot */
.gwd-football-grid-matches-90phut .matches__item--hot:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 11px;
    padding: 1px;
    background: linear-gradient(155deg, #FF0000 0%, #630606 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* VS Button */
.gmd-score-box.vs:not(.t_vs_num) {
    width: 40px;
    font-weight: bold;
}

/* Is Win */
.is-win {
    border: 1px solid #01D35C;
}

/* Popup */
.matches__item {
    position: relative;
}

.incident-popup {
    position: absolute;
    z-index: 60;
}

.match-popup.statistic-section {
    position: absolute;
    inset: 0;
    z-index: 10001;
    pointer-events: none;
}

.incident-popup,
.statics-popup {
    position: absolute;
    z-index: 10001;
    pointer-events: auto;
    margin: 0;
}

/* Comentator */
.gmd-match-footer__streamer {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #bbbbbb;
  justify-content: center;
  width: max-content;
}

.toggle-btn {
    background: none;
    border: none;
    color: #bbbbbb;
    border: 1px solid transparent;
    border-radius: 38px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin: 0;
}

.blv-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

button.toggle-btn span {
    font-size: 12px;
    font-weight: normal;
}

span.blv-arrow {
    color: #424242;
}

/* Readmore */
.dashicons-update {
    margin-top: 3px !important;
    margin-left: 3px !important;
}

.matches__item .gmd-match__odds .grid-match__odds-item p {
    color: #8D92A2;
    font-size: 11px;
    margin: 0px;
    position: relative;
    display: flex;
    flex: 1;
    justify-content: center;
}

.btn-loadmore {
    background: linear-gradient(17.33deg, #FF7F23 -19.2%, #FFBC09 87.67%);
    border-radius: 3px;
    font-weight: bold;
    font-size: 17.0016px;
    line-height: 27px;
    text-transform: uppercase;
    color: #04060B;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

@media only screen and (min-width: 850px) {
    .btn-loadmore {
        width: auto;
    }
}

a.commentator {
    color: #BBBBBB;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    font-family: "Roboto", sans-serif;
}

.sports-bars.d-none-mobile li.nav-item {
    max-height: 57px;
}

/* ============================================================
   Skeleton Dark Gray Shimmer (Desktop + Mobile, Full WebKit Fix)
   ============================================================ */

/* ===== DESKTOP / DEFAULT ===== */
.gmd-skeleton {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;

    /* Desktop gradient */
    background: linear-gradient(
        90deg,
        #4a4a4a 0%,
        #6b6b6b 40%,
        #4a4a4a 80%
    );
    background-size: 250% 100%;
    animation: gmd-shimmer 2.6s infinite ease-in-out;

    /* --- Mobile browser FIX (applied on desktop too, safe) --- */
    background-image: -webkit-linear-gradient(
        left,
        #4a4a4a 0%,
        #6b6b6b 40%,
        #4a4a4a 80%
    );
    -webkit-background-size: 250% 100%;
    -webkit-animation: gmd-shimmer 2.6s infinite ease-in-out;
}

/* KEYFRAMES DESKTOP */
@keyframes gmd-shimmer {
    0%   { background-position: -150% 0; }
    100% { background-position: 150% 0; }
}

@-webkit-keyframes gmd-shimmer {
    0%   { background-position: -150% 0; }
    100% { background-position: 150% 0; }
}


/* ========= SKELETON SIZES ========= */
.gmd-skeleton-logo {
    width: 26px;
    height: 26px;
    margin: 0 auto;
}

.gmd-skeleton-text-sm {
    height: 10px;
    width: 40px;
    margin-top: 4px;
}

.gmd-skeleton-text-md {
    height: 12px;
    width: 70px;
    margin-top: 4px;
}

.gmd-skeleton-text-lg {
    height: 14px;
    width: 90px;
    margin: 6px auto 0;
}

.gmd-skeleton-score {
    height: 20px;
    width: 60px;
    margin: 0 auto;
}

.gmd-skeleton-odds-line {
    height: 12px;
    width: 100%;
    margin-top: 4px;
}

.matches__item.is-skeleton a {
    pointer-events: none;
}

.gmd-match-date-skeleton {
    margin-left: 180px;
}

.gmd-match-footer__streamer-skeleton {
    display: flex;
    gap: 5px;
    align-items: center;
    color: #bbbbbb;
    justify-content: center;
}

.gmd-match-footer__odds {
    padding-right: 10px;
    border-radius: 40px;
}

.gmd-match-footer__odds.is-skeleton {
    background: transparent;
    padding-right: 0px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .gmd-match-footer.is-skeleton {
        grid-template-columns: 1fr 100px 1fr;
    }
    .gmd-match-footer__streamer-skeleton {
        justify-content: center;
    }
}

/* ============================================================
   MOBILE VERSION — Shimmer rõ hơn, sáng hơn, chạy chậm hơn
   ============================================================ */
@media (max-width: 767.98px) {
    .gmd-match-footer__streamer-skeleton {
        justify-content: flex-start;
    }

    .gmd-skeleton {
        /* Mobile gradient (tương phản cao hơn) */
        background: #3a3a3a;
        background-image: linear-gradient(
            90deg,
            #3a3a3a 0%,
            #888888 40%,
            #3a3a3a 80%
        );
        background-size: 300% 100%;
        animation: gmd-shimmer-mobile 3s infinite linear;

        /* --- Mobile WebKit Fix --- */
        background-image: -webkit-linear-gradient(
            left,
            #3a3a3a 0%,
            #888888 40%,
            #3a3a3a 80%
        );
        -webkit-background-size: 300% 100%;
        -webkit-animation: gmd-shimmer-mobile 3s infinite linear;
    }

    /* Keyframes cho mobile */
    @keyframes gmd-shimmer-mobile {
        0%   { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }

    @-webkit-keyframes gmd-shimmer-mobile {
        0%   { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }
}

/* Wrapper chung */
.commentator-wrap {
    position: relative;
    display: inline-block; /* hoặc inline-flex nếu cần */
    margin: 0 auto;
}

/* Button BLV */
.commentator-wrap .toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.35);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.commentator-wrap .toggle-btn img {
    display: block;
}

.commentator-wrap .blv-count {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.commentator-wrap .blv-arrow {
    display: inline-block;
    transition: transform 0.18s ease;
}

/* Xoay mũi tên khi mở */
.commentator-wrap.is-open .blv-arrow {
    transform: rotate(90deg);
}

/* Popup ẩn mặc định, canh giữa theo button, sát ngay bên dưới */
.commentator-wrap .extra-info {
    position: absolute;
    top: 100%;                 /* ngay dưới button */
    left: 50%;
    transform: translateX(-50%) translateY(4px); /* dùng cho hiệu ứng */
    
    background: #1f1f1f;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 150px;
    width: max-content;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

/* Khi mở: sát button, không bị cách xa */
.commentator-wrap.is-open .extra-info {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    z-index: 10001;
}

/* Khoảng cách giữa các BLV trong popup */
.commentator-wrap .extra-info_one + .extra-info_one {
    margin-top: 6px;
}

.extra-info_one {
    font-size: 12px;
}

.commentator-wrap .toggle-btn {
    background: none;
    padding: 0px 8px;
}

/* ===============================
   MOBILE FIX for BLV Popup
   =============================== */
@media (max-width: 768px) {

    .commentator-wrap {
        margin-left: 0 !important;
    }

    /* Popup căn lề trái theo button */
    .extra-info {
        left: 0 !important;               /* canh trái button */
        transform: translateX(0) translateY(4px) !important;
        min-width: 130px !important;
        width: max-content;
    }

    /* Khi mở popup */
    .commentator-wrap.is-open .extra-info {
        transform: translateX(0) translateY(0) !important;
    }

    .extra-info_one {
        display: flex;
    }

}
