/*
Theme Name: 7M LiveScore VN
Theme URI: https://7mcomvn.local/
Description: Theme tỷ số bóng đá trực tuyến 7M VIP giống 100% https://www.7msport.com/vip/ với dữ liệu realtime, bảng tỷ số VIP Live Grid, lọc giải đấu popup modal, hỗ trợ SEO toàn diện và tối ưu Zero Frontend Lag.
Author: DeepMind Antigravity
Author URI: https://7mcomvn.local/
Version: 3.2.9
Text Domain: theme-7m
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   GLOBAL DESIGN RULES - STRICT COMPLIANCE (LEARNED USER RULES)
   1. Đồng bộ Container 1250px (max-width: 1250px) toàn bộ Header/Main/Footer
   2. Bố cục toàn bộ template bắt buộc có Sidebar (2 cột: Main 75% + Sidebar 25%)
   3. Bo góc 8px đồng bộ (border-radius: 8px !important) trên các phần tử
   4. Font hệ thống Arial (Arial, -apple-system, sans-serif) - Hạn chế tối đa dùng bold
   5. Kích thước chữ auto 12px - 16px (clamp), không mất chữ, không che chữ, wrap tự nhiên
   6. Responsive Fit 100% - Tối ưu Flexbox, siêu gọn gàng, ít không gian thừa
   7. Hình ảnh tạo ra luôn ở định dạng WebP, tối ưu Zero Frontend Lag
   8. Không scroll ngang viewport, không hidden che khuất chữ, auto responsive fit giao diện
   ========================================================================== */

:root, html {
    font-size: clamp(12px, 0.8vw + 9.5px, 16px) !important;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
    font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    overflow-x: hidden !important;
}

*, *::before, *::after {
    box-sizing: inherit;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Exception only for lottery/sports balls */
.ball-round, .sport-ball {
    border-radius: 50% !important;
}

body {
    font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 100% !important;
    line-height: 1.4;
    color: #222222;
    background-color: #ebebeb !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Unified 1250px Container Width Across Header / Main / Footer */
.v7m-header-container,
#content,
div#content,
.main-wrap,
.layout-wrap,
.container,
.v7m-page-container,
.v7m-vip-content-layout,
.footer .footer-container,
.footer-container,
.v7m-match-content {
    width: 100% !important;
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

/* Synchronized Horizontal Edge Alignment (12px padding) */
.v7m-topbar-inner,
.v7m-navbar-inner,
.v7m-subnav-inner,
#content,
.v7m-page-container,
.v7m-vip-content-layout,
.v7m-match-content,
.footer .footer-container,
.footer-container,
.filters-wrapper {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
}

/* Unified 8px Border Radius */
.v7m-odds-grid,
.v7m-data-grid,
.btn-check-keo,
.v7m-act-btn,
.btn-vip-action,
.vip-match-card,
.m-date-pill,
.odds-filter-btn,
.vip-quick-btn,
.v7m-topbar-app-dropdown,
.vip-modal-dialog,
.vip-shortcut-btn,
.v7m-act-link,
.filters-wrapper,
.lfun,
input, select, textarea, button,
.v7m-card {
    border-radius: 8px !important;
}

/* Badges 6px Border Radius */
.v7m-league-badge,
.v7m-badge-live,
.v7m-badge-ft,
.v7m-badge-sched,
.v7m-rank-badge,
.odds-live-pill,
.v7m-topbar-badge,
.v7m-topbar-app-btn {
    border-radius: 6px !important;
}

/* Clearfix & Resets */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100% !important;
    border-radius: 0 !important;
}

a {
    color: #0000cc;
    text-decoration: none;
}

a:hover, a:active {
    color: #ff3300;
    text-decoration: underline;
}

img {
    border: 0;
    vertical-align: middle;
    border-radius: 0 !important;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: 15px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* High density utility (Low padding, low margin) */
.density-compact {
    padding: 2px 4px !important;
    margin: 1px 0 !important;
}

/* Universal is-hidden utility */
.is-hidden {
    display: none !important;
}

/* Inline SVG vector icon helper */
.v7m-inline-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    pointer-events: none;
}

