/* Sanha Live Widget – CSS Isolated */
#sanha-live {
    background-color: #0e0e0e;
    color: #fff;
    padding: 16px;
}

#sanha-live .sanha-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid card */
#sanha-live .sanha-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Mobile dưới 420px */
@media (max-width: 420px) {
    #sanha-live .sanha-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Mobile rất nhỏ */
@media (max-width: 360px) {
    #sanha-live .sanha-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Card style */
#sanha-live .match-card {
    background: url("/wp-content/uploads/2025/12/1762008793160035260_bg-card-match-light-02.webp");
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #3faf4a;
    padding: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

#sanha-live .match-card:hover {
    border-color: #7ed957;
    transform: translateY(-2px);
}

/* Overlay */
#sanha-live .match-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

#sanha-live .match-content {
    position: relative;
    z-index: 2;
}

/* Badges */
#sanha-live .status-badge,
#sanha-live .live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#sanha-live .status-badge {
    background: #7ed957;
    color: #000;
}

#sanha-live .live-badge {
    background: #2ecc71;
    color: #fff;
}

#sanha-live .live-icon {
    width: 6px;
    height: 6px;
    background: #d8ffd8;
    border-radius: 50%;
    animation: sanhaBlink 1s infinite ease-in-out;
}

@keyframes sanhaBlink {
    0% { opacity: 0.2; transform: scale(0.6); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.2; transform: scale(0.6); }
}

/* Button */
#sanha-live .btn-green {
    background: #7ed957;
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 18px;
    display: inline-block;
    text-align: center;
}

#sanha-live .btn-green:hover {
    background: #9cf57a;
}

/* Team name ellipsis */
#sanha-live .team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

/* Avatar border */
#sanha-live .commentator-avatar {
    border: 2px solid #7ed957;
    padding: 2px;
    background: #fff;
}

/* =======================
   TAB LỌC
======================= */

.sanha-tabs {
    background: #e5e5e5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 16px;
    height: 48px;
}

.sanha-tabs .tab-btn {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    color: #333;
    background: #e5e5e5;
    border: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.sanha-tabs .tab-btn.active {
    background: #9cf57a;
    color: #000;
}

/* Helpers (Tailwind fallback) */
#sanha-live .text-sm { font-size: 0.875rem; }
#sanha-live .text-xs { font-size: 0.75rem; }
#sanha-live .text-lg { font-size: 1.125rem; }
#sanha-live .text-4xl { font-size: 2.25rem; }

#sanha-live .opacity-60 { opacity: 0.6; }
#sanha-live .opacity-70 { opacity: 0.7; }

#sanha-live .font-semibold { font-weight: 600; }
#sanha-live .font-bold { font-weight: 700; }

#sanha-live .flex { display: flex; }
#sanha-live .items-center { align-items: center; }
#sanha-live .justify-between { justify-content: space-between; }
#sanha-live .flex-col { flex-direction: column; }
#sanha-live .gap-2 { gap: 0.5rem; }

#sanha-live .mb-1 { margin-bottom: 0.25rem; }
#sanha-live .mb-2 { margin-bottom: 0.5rem; }
#sanha-live .mb-3 { margin-bottom: 0.75rem; }
#sanha-live .mt-3 { margin-top: 0.75rem; }

#sanha-live .w-1\/3 { width: 33.333%; }
#sanha-live .w-5 { width: 1.25rem; }
#sanha-live .h-5 { height: 1.25rem; }
#sanha-live .w-10 { width: 2.5rem; }
#sanha-live .h-10 { height: 2.5rem; }
#sanha-live .w-12 { width: 3rem; }
#sanha-live .h-12 { height: 3rem; }

#sanha-live .rounded-full { border-radius: 999px; }
#sanha-live .rounded-lg { border-radius: 0.5rem; }

#sanha-live .text-center { text-align: center; }

.button, button, fieldset, input, select, textarea {
    margin-bottom: 0em !important;
}

.minute-display {
    font-size: 15px !important;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

