/* ==========================================================================
   7M Core CSS - 99.9% Replica of https://live.7mvn9.com/
   Strict compliance with Global Rules:
   - NO border-radius (border-radius: 0 !important)
   - NO box-shadow, NO text-shadow
   - Root font size 16px, Body font size 100%
   - Compact layout, high information density
   ========================================================================== */

/* Resets & Base Elements */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
    padding: 0;
    margin: 0;
}
ol, ul {
    list-style: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

.clear {
    clear: both;
    height: 0;
    line-height: 0;
    font-size: 0;
}
.clearfix::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}

/* ==========================================================================
   TOP BAR (Black Bar #363636)
   ========================================================================== */
.liveTopContent {
    width: 100%;
    background-color: #141414;
    border-bottom: 1px solid #242424;
    position: relative;
    z-index: 1050;
    text-align: left;
    height: 32px;
    line-height: 32px;
}
.liveTop {
    width: 1250px;
    max-width: 100%;
    margin: 0 auto;
    height: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}
.liveTop-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.liveTop-left .lt_timeZone {
    font-size: 15px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") right center no-repeat;
    padding-right: 16px;
}
.liveTop-left .lt_telegram {
    color: #43b5f7;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.liveTop-left .lt_bookmark {
    color: #cccccc;
    font-size: 15px;
}
.liveTop-left .lt_bookmark span {
    color: #ffd800;
    font-weight: bold;
}

.liveTop-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.liveTop-right .lr_item {
    position: relative;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
}
.liveTop-right .lr_item a {
    color: #ffffff;
    font-size: 15px;
}
.liveTop-right .app_down_trigger {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff !important;
    padding: 2px 10px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.15s ease;
}
.liveTop-right .app_down_trigger:hover {
    background: var(--sevenm-primary-hover, #9e1030);
}
.liveTop-right .app_dropdown_menu {
    display: none;
    position: absolute;
    top: 32px;
    right: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid var(--sevenm-primary, #7a0019);
    padding: 12px;
    z-index: 1060;
    color: #333333;
    text-align: center;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.liveTop-right .lr_item:hover .app_dropdown_menu {
    display: block;
}
.app_dropdown_menu .qr-wrap img {
    width: 110px;
    height: 110px;
    display: block;
    margin: 5px auto;
}
.app_dropdown_menu .btn-app {
    display: inline-block;
    padding: 4px 10px;
    background: var(--sevenm-primary, #7a0019);
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    margin: 3px;
    transition: background 0.15s ease;
}
.app_dropdown_menu .btn-app:hover {
    background: var(--sevenm-primary-hover, #9e1030);
}

/* ==========================================================================
   HEADER & NAVIGATION (Plum Red Bar #7A0019 - Height 68px)
   ========================================================================== */
.liveHead {
    background: var(--sevenm-primary, #7a0019);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 500;
    border-bottom: 2px solid var(--sevenm-header-border, #5c0013);
}
.liveNavigation {
    width: 1250px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 68px;
    padding: 0 10px;
    box-sizing: border-box;
}
.liveLogo {
    width: 270px;
    min-width: 250px;
    height: 68px;
    display: flex;
    align-items: center;
    text-align: left;
    flex-shrink: 0;
}
.liveLogo a {
    display: inline-flex;
    align-items: center;
    height: 68px;
    text-decoration: none;
}
.liveLogo a img {
    display: block;
    height: 54px;
    max-height: 54px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}
.liveLogo .logo-text {
    font-family: Arial, Tahoma, sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
}
.liveLogo .logo-sub {
    background: #ffd800;
    color: #111111;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 5px;
    margin-left: 6px;
    text-transform: uppercase;
}

.liveMenu {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 10px;
}
.liveMenu ul,
.liveMenu .liveMenu-ul {
    display: flex;
    align-items: center;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}
.liveMenu li {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}
.liveMenu a,
.liveMenu li a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 0 16px;
    height: 68px;
    line-height: 68px;
    display: inline-flex;
    align-items: center;
    position: relative;
    border-bottom: 3px solid transparent;
    box-sizing: border-box;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    border-radius: 0 !important;
}
.liveMenu a:hover,
.liveMenu li:hover > a {
    color: #ffd800;
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
}
.liveMenu a.on,
.liveMenu a.active,
.liveMenu li.current-menu-item > a,
.liveMenu li.current_page_item > a,
.liveMenu li.active > a {
    color: #ffd800 !important;
    background: #5c0013 !important;
    border-bottom: 3px solid #ffd800 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

/* Authentic Submenu (Charcoal Black #1A1A1A - Height 40px) */
.liveSubmenuContent {
    width: 100%;
    height: 40px;
    background-color: #1a1a1a;
    position: relative;
    z-index: 18;
    border-bottom: 2px solid var(--sevenm-header-border, #7a0019);
}
.liveSubmenu {
    width: 1250px;
    max-width: 100%;
    margin: 0 auto;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}
.liveSubmenu ul,
.liveSubmenu .liveSubmenu-ul {
    display: flex;
    align-items: center;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.liveSubmenu li {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}
.liveSubmenu a,
.liveSubmenu li a {
    display: inline-block;
    vertical-align: middle;
    font-size: 15px;
    color: #e2e8f0;
    line-height: 30px;
    height: 30px;
    padding: 0 14px;
    border-radius: 0 !important;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.liveSubmenu a:hover,
.liveSubmenu li:hover > a {
    background-color: #2a2a2a;
    color: #ffffff;
    text-decoration: none;
}
.liveSubmenu a.on,
.liveSubmenu a.active,
.liveSubmenu li.current-menu-item > a,
.liveSubmenu li.current_page_item > a,
.liveSubmenu li.active > a {
    background-color: var(--sevenm-primary, #7a0019) !important;
    color: #ffffff !important;
    font-weight: bold !important;
    border-radius: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
}

/* ==========================================================================
   MAIN CONTENT WRAPPER
   ========================================================================== */
#content {
    width: 1250px;
    max-width: 100%;
    margin: 8px auto;
    text-align: left;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Float Ads Left / Right for Wide Screens */
.float-ad-left, .float-ad-right {
    position: fixed;
    top: 120px;
    width: 120px;
    z-index: 100;
    display: none;
}
.float-ad-left {
    left: calc(50% - 625px - 135px);
}
.float-ad-right {
    right: calc(50% - 625px - 135px);
}
@media (min-width: 1540px) {
    .float-ad-left, .float-ad-right {
        display: block;
    }
}
.float-ad-left img, .float-ad-right img {
    width: 120px;
    display: block;
    margin-bottom: 8px;
    border: 1px solid #ccc;
}

/* Odds Fluctuations Indicators (Green Drop / Red Rise) */
.odds-up {
    color: #cc0000 !important;
}
.odds-up::after {
    content: " ↑";
    font-size: 11px;
    color: #cc0000;
}
.odds-down {
    color: #008800 !important;
}
.odds-down::after {
    content: " ↓";
    font-size: 11px;
    color: #008800;
}
.odds-filter-btn.active {
    color: #cc0000 !important;
    font-weight: bold !important;
}

/* ==========================================================================
   LEFT SIDEBAR: BẢNG KÊ CÁC GIẢI (League Selector)
   ========================================================================== */
#cLeft {
    width: 198px;
    flex-shrink: 0;
}
.league-box {
    background: #ffffff;
    border: 1px solid #d4c0c4;
    margin-bottom: 8px;
}
.league-box-header {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.league-box-tools {
    background: var(--sevenm-primary-light, #fbf0f2);
    border-bottom: 1px solid var(--sevenm-primary-border, #ebd0d5);
    padding: 4px 6px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
}
.league-box-tools a {
    color: var(--sevenm-primary, #7a0019);
    font-size: 15px;
    text-decoration: none;
}
.league-box-tools a:hover {
    color: var(--sevenm-primary-hover, #9e1030);
    text-decoration: underline;
}
.league-list {
    max-height: 520px;
    overflow-y: auto;
    padding: 2px 4px;
}
.league-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    padding: 3px 2px;
    border-bottom: 1px dotted #e2e2e2;
    cursor: pointer;
}
.league-item:hover {
    background-color: #f1f6fc;
}
.league-item label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 105px;
}
.league-item input[type="checkbox"] {
    margin: 0;
}
.league-item .l-badge {
    color: #cc0000;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

/* ==========================================================================
   CENTER COLUMN: MAIN LIVESCORE & ODDS
   ========================================================================== */
#cCenter {
    width: 748px;
    flex-grow: 1;
}

/* Control Toolbar (.lfun) */
.lfun {
    position: relative;
    z-index: 25;
    background: #f0f0f0;
    border: 1px solid #cccccc;
    height: 34px;
    line-height: 34px;
    padding: 0 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    margin-bottom: 4px;
}
.lfunLeft {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lfunLeft a {
    color: var(--sevenm-primary, #7a0019);
    font-size: 15px;
    text-decoration: none;
}
.lfunLeft a:hover {
    color: var(--sevenm-primary-hover, #9e1030);
    text-decoration: underline;
}
.lfunLeft a.active {
    font-weight: bold;
    color: var(--sevenm-primary, #7a0019);
}
.lfunLeft .sep {
    color: #cccccc;
    font-size: 15px;
}
.lfunLeft .hide-count {
    color: #ff0000;
    font-weight: bold;
}

.lfunRight {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lfunRight a {
    color: var(--sevenm-primary, #7a0019);
    text-decoration: none;
}
.lfunRight a:hover {
    color: var(--sevenm-primary-hover, #9e1030);
    text-decoration: underline;
}
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 20px;
    cursor: pointer;
    border: 1px solid #bbbbbb;
    background: #ffffff;
    color: #444444;
    border-radius: 0 !important;
    box-shadow: none !important;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-icon:hover {
    background: #eeeeee;
    border-color: #999999;
}
.btn-icon.active {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    border-color: var(--sevenm-header-border, #5c0013);
}
.btn-icon.active:hover {
    background: var(--sevenm-primary-hover, #9e1030);
}
.btn-icon.muted {
    background: #f2f2f2;
    color: #888888;
    border-color: #cccccc;
}
.btn-icon svg {
    width: 13px;
    height: 13px;
    display: block;
    fill: currentColor;
    pointer-events: none;
}
#btn-sound-toggle.muted .svg-sound-on,
#btn-win-toggle.muted .svg-win-on {
    display: none !important;
}
#btn-sound-toggle.muted .svg-sound-off,
#btn-win-toggle.muted .svg-win-off {
    display: block !important;
}
.btn-icon.spinning svg,
#btn-reload-table.spinning svg,
#btn-reload-basket.spinning svg {
    animation: sevenmSpin 0.6s linear infinite;
}
@keyframes sevenmSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.search-team-box {
    margin-left: 6px;
}
.search-team-box input {
    height: 26px;
    font-size: 15px;
    padding: 1px 6px;
    border: 1px solid #999999;
    width: 120px;
}
.search-team-box input:focus {
    border-color: var(--sevenm-primary, #7a0019);
}

/* Secondary Function Bar (Ẩn / Hiện trận đã chọn) */
.fun_sec {
    background: #f8f8f8;
    border: 1px solid #dcdcdc;
    border-top: none;
    height: 30px;
    line-height: 30px;
    padding: 0 8px;
    font-size: 15px;
    color: #666666;
    margin-top: -4px;
    margin-bottom: 4px;
}
.fun_sec a {
    color: var(--sevenm-primary, #7a0019);
    text-decoration: none;
}
.fun_sec a:hover {
    color: var(--sevenm-primary-hover, #9e1030);
    text-decoration: underline;
}
.fun_sec span {
    color: #cccccc;
    margin: 0 4px;
}

/* Notice Bar */
.notice-bar {
    background: #fffcee;
    border: 1px solid #e0c388;
    padding: 6px 10px;
    font-size: 15px;
    line-height: 1.4;
    color: #444444;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}
.notice-bar span.icon-live {
    color: #cc0000;
    font-weight: bold;
}

/* ==========================================================================
   2IN1 LIVESCORE TABLE
   ========================================================================== */
.table-wrap {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cccccc;
    margin-bottom: 8px;
}
table.live {
    width: 100%;
    font-size: 16px;
    border-collapse: collapse;
}

/* Table Header */
table.live tr.tHead td {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    height: 34px;
    line-height: 34px;
    padding: 0 4px;
    border: 1px solid var(--sevenm-table-header-border, #5c0013);
    font-size: 15px;
}

/* League Section Header */
tr.matchClass td {
    background: var(--sevenm-primary-light, #fbf0f2);
    color: #141414;
    font-weight: bold;
    height: 28px;
    line-height: 28px;
    padding: 0 6px;
    border-top: 1px solid var(--sevenm-table-header-border, #ebd0d5);
    border-bottom: 1px solid var(--sevenm-table-header-border, #ebd0d5);
    text-align: left;
    font-size: 15px;
}
tr.matchClass .color-tag {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    vertical-align: middle;
}
tr.matchClass a.toggle-league {
    color: #141414;
    text-decoration: none;
    cursor: pointer;
}
tr.matchClass a.toggle-league:hover {
    color: var(--sevenm-primary, #7a0019);
}

/* 7M League Badges - Authentic Square Block with Filled Color */
.league-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    max-width: 105px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-decoration: none;
    cursor: default;
    box-sizing: border-box;
}

.league-badge:hover {
    filter: brightness(1.08);
}

.m-league-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

.sb-league-badge {
    display: inline-block;
    padding: 1px 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Match Rows */
table.live tr.tbg0 td {
    background: #f7f9fc;
    border-bottom: 1px solid #e3e8ee;
    padding: 4px 4px;
    height: 32px;
    line-height: 1.25;
}
table.live tr.tbg1 td {
    background: #ffffff;
    border-bottom: 1px solid #e3e8ee;
    padding: 4px 4px;
    height: 32px;
    line-height: 1.25;
}
table.live tr.tbg0:hover td,
table.live tr.tbg1:hover td,
table.live tr.odds-row-item:hover td,
tr.tbg0:hover td,
tr.tbg1:hover td {
    background: var(--sevenm-primary-light, rgba(122, 0, 25, 0.05)) !important;
}


/* ==========================================================================
   REALTIME LIVE SCORE IN-TABLE EFFECTS (VIBRATION / SHAKE, YELLOW WARNING FLASH, SCORE POP)
   ========================================================================== */

/* 1. Subtle tactile vibration / shake for immediate realtime trigger (0.75s) */
@keyframes realtimeShake {
    0%, 100% {
        transform: translateX(0);
    }
    15% {
        transform: translateX(-4px);
    }
    30% {
        transform: translateX(4px);
    }
    45% {
        transform: translateX(-3px);
    }
    60% {
        transform: translateX(3px);
    }
    75% {
        transform: translateX(-1.5px);
    }
    90% {
        transform: translateX(1.5px);
    }
}

/* 2. Soft warning yellow blinking / pulsing background for goal highlight (7s) */
@keyframes goalYellowFlash {
    0% {
        background-color: #fef08a !important; /* warning amber/yellow-200 */
    }
    50% {
        background-color: #fefce8 !important; /* warning light amber/yellow-50 */
    }
    100% {
        background-color: #fef08a !important;
    }
}

/* 3. Red card warning blinking background */
@keyframes redCardFlash {
    0% {
        background-color: #fecdd3 !important; /* warning rose/red-200 */
    }
    50% {
        background-color: #fff1f2 !important; /* warning light rose-50 */
    }
    100% {
        background-color: #fecdd3 !important;
    }
}

/* 4. Score number pop & scale animation */
@keyframes scoreGoalPop {
    0%, 100% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.32);
        color: #dc2626 !important;
    }
    60% {
        transform: scale(1.15);
        color: #b91c1c !important;
    }
    80% {
        transform: scale(1.24);
        color: #dc2626 !important;
    }
}

/* 5. "VÀO!" Alert Badge Pulse */
@keyframes goalBadgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.88;
    }
}

/* Desktop Row Goal Highlight */
table.live tr.goal-highlight td {
    animation: goalYellowFlash 1.1s ease-in-out infinite;
    color: #1e293b !important;
    transition: background-color 0.3s ease;
}
table.live tr.goal-highlight td.th_chk {
    border-left: 3px solid #d97706 !important;
}
table.live tr.goal-highlight.is-shaking td.th_home,
table.live tr.goal-highlight.is-shaking td.th_score,
table.live tr.goal-highlight.is-shaking td.th_away {
    animation: realtimeShake 0.75s ease-in-out;
}
table.live tr.goal-highlight .score-main {
    animation: scoreGoalPop 0.9s ease-in-out infinite;
    color: #dc2626 !important;
    font-weight: 800 !important;
    display: inline-block;
}
table.live tr.goal-highlight .goal-scoring-team {
    color: #b91c1c !important;
    font-weight: 800 !important;
    text-decoration: underline;
}

/* "VÀO!" Badge Indicator */
.badge-goal-alert {
    display: inline-block;
    background: #dc2626;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    animation: goalBadgePulse 0.8s ease-in-out infinite;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.5px;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.badge-goal-alert.m-badge-goal {
    font-size: 10px;
    padding: 2px 4px;
    margin-top: 2px;
}

/* Desktop Row Red Card Highlight */
table.live tr.redcard-highlight td {
    animation: redCardFlash 1.1s ease-in-out infinite;
    transition: background-color 0.3s ease;
}
table.live tr.redcard-highlight td.th_chk {
    border-left: 3px solid #dc2626 !important;
}
table.live tr.redcard-highlight.is-shaking td.th_home,
table.live tr.redcard-highlight.is-shaking td.th_away {
    animation: realtimeShake 0.75s ease-in-out;
}

/* Mobile Card Highlights */
.live-list li.goal-highlight {
    animation: goalYellowFlash 1.1s ease-in-out infinite;
    transition: background-color 0.3s ease;
}
.live-list li.goal-highlight .m-stripe {
    background: #d97706 !important;
}
.live-list li.goal-highlight.is-shaking {
    animation: realtimeShake 0.75s ease-in-out, goalYellowFlash 1.1s ease-in-out infinite 0.75s;
}
.live-list li.goal-highlight .info3_result span {
    animation: scoreGoalPop 0.9s ease-in-out infinite;
    color: #dc2626 !important;
    font-weight: 800 !important;
    display: inline-block;
}
.live-list li.goal-highlight .goal-scoring-team {
    color: #b91c1c !important;
    font-weight: 800 !important;
}

.live-list li.redcard-highlight {
    animation: redCardFlash 1.1s ease-in-out infinite;
    transition: background-color 0.3s ease;
}
.live-list li.redcard-highlight .m-stripe {
    background: #dc2626 !important;
}
.live-list li.redcard-highlight.is-shaking {
    animation: realtimeShake 0.75s ease-in-out, redCardFlash 1.1s ease-in-out infinite 0.75s;
}

/* Cell Alignments & Columns */
table.live td.th_chk { width: 24px; text-align: center; }
table.live td.th_time { width: 44px; text-align: center; font-family: Tahoma, sans-serif; font-size: 15px; color: #555555; }
table.live td.th_state { width: 56px; text-align: center; font-size: 15px; font-weight: bold; }
table.live td.th_home { width: 170px; text-align: right; padding-right: 8px; }
table.live td.th_score { width: 58px; text-align: center; font-weight: bold; font-family: Tahoma, Arial, sans-serif; }
table.live td.th_away { width: 170px; text-align: left; padding-left: 8px; }
table.live td.th_odds { width: 200px; text-align: center; }
table.live td.th_data { width: 72px; text-align: center; }
table.live td.th_top { width: 28px; text-align: center; }

/* Status Text Colors & Live Pulse */
@keyframes sevenmLiveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.status-live {
    color: #cc0000 !important;
    font-weight: bold;
    animation: sevenmLiveBlink 1.8s infinite ease-in-out;
}
.icon-live {
    animation: sevenmLiveBlink 1.5s infinite ease-in-out;
    display: inline-block;
}
.status-ht { color: #0000ff !important; font-weight: bold; }
.status-ft { color: #888888 !important; }
.status-postponed { color: #ff6600 !important; }
.status-upcoming { color: #333333 !important; }

/* Teams & Scores */
.team-name {
    color: #111111;
    font-weight: 500;
    text-decoration: none;
}
.team-name:hover {
    color: var(--sevenm-primary, #7a0019);
    text-decoration: underline;
}
.team-rank {
    font-size: 13px;
    color: #999999;
    font-weight: normal;
    margin: 0 2px;
}
.card-red {
    display: inline-block;
    width: 14px;
    height: 16px;
    background: #e60000;
    color: #ffffff;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    font-weight: bold;
    margin: 0 2px;
    vertical-align: middle;
}
.card-yellow {
    display: inline-block;
    width: 14px;
    height: 16px;
    background: #ffcc00;
    color: #000000;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    font-weight: bold;
    margin: 0 2px;
    vertical-align: middle;
}

/* Score display */
.score-main {
    font-size: 18px;
    font-weight: bold;
    color: #b81b34;
    display: block;
}
.score-main.live-goal {
    color: #e02424;
}
.score-ht {
    font-size: 13px;
    color: #888888;
    font-weight: normal;
}

/* Odds Boxes (Handicap, Over/Under, 1X2) */
.odds-box-wrap {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    font-family: Arial, Tahoma, sans-serif;
}
.odds-col {
    width: 64px;
    background: #ffffff;
    border: 1px solid #d4dde5;
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.odds-col span {
    font-size: 13.5px;
    line-height: 1.2;
}
.odds-val {
    color: #005f73;
    font-weight: normal;
}
.odds-line {
    color: #cc0000;
    font-weight: bold;
}
.odds-up {
    color: #cc0000 !important;
}
.odds-down {
    color: #008800 !important;
}

/* Data & Utility Icons */
.data-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    line-height: 1;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    letter-spacing: -0.4px;
    padding: 0 2px;
    border-radius: 0 !important;
    box-shadow: none !important;
    user-select: none;
}
.icon-ana { background: #337ab7; color: #ffffff !important; } /* PT - Phân tích H2H */
.icon-sta { background: #f0ad4e; color: #ffffff !important; } /* TL - Tỷ lệ kèo */
.icon-bir { background: #d9534f; color: #ffffff !important; } /* TT - Trực tiếp */

.icon-ana:hover { background: #286090; }
.icon-sta:hover { background: #ec971f; }
.icon-bir:hover { background: #c9302c; }

.icon-top {
    color: #999999;
    cursor: pointer;
    font-size: 16px;
}
.icon-top.pinned {
    color: #cc0000;
    font-weight: bold;
}

/* Pinned Row Styling */
tr.is-pinned td {
    background: #fffbe6 !important;
    border-bottom: 2px solid #f0ad4e !important;
}

/* ==========================================================================
   RIGHT SIDEBAR: SETTINGS & TOOLS
   ========================================================================== */
#cRight {
    width: 198px;
    flex-shrink: 0;
}
.side-box {
    background: #ffffff;
    border: 1px solid #d4c0c4;
    margin-bottom: 8px;
}
.side-box-tabs {
    display: flex;
    background: var(--sevenm-primary-light, #fbf0f2);
    border-bottom: 1px solid var(--sevenm-primary-border, #ebd0d5);
}
.side-box-tabs .tab-item {
    flex: 1;
    font-size: 15px;
    text-align: center;
    padding: 6px 4px;
    cursor: pointer;
    border-right: 1px solid var(--sevenm-primary-border, #ebd0d5);
    color: #555555;
}
.side-box-tabs .tab-item.active {
    background: #ffffff;
    font-weight: bold;
    color: var(--sevenm-primary, #7a0019);
    border-bottom: 1px solid #ffffff;
    border-top: 2px solid var(--sevenm-primary, #7a0019);
}
.tab-content {
    padding: 8px;
    font-size: 15px;
}
.tab-content .field-group {
    margin-bottom: 8px;
}
.tab-content label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 15px;
}
.tab-content select {
    width: 100%;
    font-size: 15px;
    height: 30px;
    padding: 3px 6px;
    border: 1px solid #cccccc;
}
.font-size-switcher {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}
.font-size-btn {
    flex: 1;
    text-align: center;
    background: #f0f0f0;
    border: 1px solid #cccccc;
    padding: 3px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}
.font-size-btn.active {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    border-color: var(--sevenm-header-border, #5c0013);
}
.font-size-btn.active:hover {
    background: var(--sevenm-primary-hover, #9e1030);
}

/* App Download Banner */
.side-app-banner {
    background: #ffffff;
    border: 1px solid #cccccc;
    padding: 8px;
    text-align: center;
    margin-bottom: 8px;
}
.side-app-banner h4 {
    font-size: 16px;
    color: var(--sevenm-primary, #7a0019);
    margin-bottom: 4px;
    font-weight: bold;
}
.side-app-banner img {
    width: 90px;
    height: 90px;
    margin: 4px auto;
    display: block;
}
.side-app-banner p {
    font-size: 14px;
    color: #666666;
}

/* ==========================================================================
   BOTTOM SEO CONTENT & FRIENDSHIP LINKS
   ========================================================================== */
.seo-section {
    background: #ffffff;
    border: 1px solid #cccccc;
    padding: 14px 18px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}
.seo-section h1 {
    font-size: 22px;
    color: var(--sevenm-primary, #7a0019);
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 6px;
}
.seo-section h2, .seo-section h3 {
    font-size: 18px;
    color: #141414;
    margin: 12px 0 6px 0;
    font-weight: bold;
}
.seo-section p {
    margin-bottom: 8px;
    text-align: justify;
}
.seo-section ul, .seo-section ol {
    margin: 6px 0 10px 20px;
    list-style: disc;
}
.seo-section li {
    margin-bottom: 4px;
}

/* ==========================================================================
   PAGE BOTTOM CONTENT & ENTRY (NATURAL FLOW, NO INNER SCROLL FRAME, NO RADIUS, NO SHADOW)
   ========================================================================== */
.seo-content-collapsible {
    position: relative;
    overflow: hidden;
    max-height: 250px;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.seo-content-collapsible.is-expanded {
    max-height: none;
}

/* Gradient Fade Overlay when collapsed */
.seo-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 60%, #ffffff 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.seo-content-collapsible.is-expanded .seo-fade-overlay {
    opacity: 0;
    display: none;
}

/* Toggle Button Container */
.seo-toggle-wrap {
    text-align: center;
    margin: 10px 0 4px 0;
    padding-top: 4px;
    position: relative;
    z-index: 2;
}
.btn-toggle-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 24px;
    height: 32px;
    background: #ffffff;
    color: var(--sevenm-primary, #7a0019);
    border: 1px solid var(--sevenm-primary, #7a0019);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    user-select: none;
}
.btn-toggle-content:hover,
.btn-toggle-content:focus {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    outline: none;
}
.btn-toggle-content .toggle-icon {
    font-size: 10px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.seo-content-body,
.page-content-box .page-entry {
    max-height: none !important;
    overflow-y: visible !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-top: 8px;
    margin-bottom: 12px;
    box-sizing: border-box;
    font-size: 15.5px;
    line-height: 1.7;
    color: #333333;
}

.wp-caption {
    max-width: 100% !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px;
    margin: 12px auto;
    text-align: center;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.wp-caption img {
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}
.wp-caption-text {
    font-size: 13px;
    color: #64748b;
    margin: 6px 0 2px 0;
    font-style: italic;
    line-height: 1.4;
}

/* SEO Figure & Images */
.seo-content-body figure {
    margin: 14px auto;
    text-align: center;
    max-width: 100%;
}
.seo-content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px auto;
    border: 1px solid #ccd5e0;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.seo-content-body figcaption {
    font-size: 14px;
    font-style: italic;
    color: #555555;
    margin-top: 6px;
    text-align: center;
    line-height: 1.4;
}

/* FAQ Accordion Schema */
.faq-wrap {
    margin-top: 12px;
    border-top: 1px solid #eeeeee;
    padding-top: 8px;
}
.faq-item {
    margin-bottom: 6px;
    border: 1px solid #e2e8ee;
}
.faq-question {
    background: #f7f9fc;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 16px;
    color: #0b5fc9;
    cursor: pointer;
}
.faq-answer {
    padding: 10px 12px;
    font-size: 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8ee;
}

/* Bottom Fast Buttons */
.bottomBt {
    text-align: center;
    margin: 10px 0;
}
.btn-nav-foot {
    display: inline-block;
    padding: 7px 18px;
    background: #4278ad;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: bold;
    margin: 0 4px;
    text-decoration: none;
}
.btn-nav-foot:hover {
    background: #366594;
    text-decoration: none;
}

/* ==========================================================================
   HOMEPAGE PREDICTIONS BLOCK (10 POSTS / 5 COLUMNS)
   Strict Global Rules: border-radius: 0 !important; box-shadow: none !important;
   ========================================================================== */
.hp-predictions-wrap {
    background: #ffffff;
    border: 1px solid #cccccc;
    margin: 8px 0 10px 0;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hp-block-header {
    background: #141414;
    color: #ffffff;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--sevenm-primary, #7a0019);
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hp-block-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hp-block-icon {
    font-size: 13px;
    line-height: 1;
}

.hp-block-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.hp-block-tag {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 2px 6px;
    display: inline-block;
    border-radius: 0 !important;
    letter-spacing: 0.3px;
}

.hp-block-more-link {
    color: var(--sevenm-secondary, #ffd800);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.hp-block-more-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.hp-predictions-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
    margin-top: 6px !important;
}

.hp-pred-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hp-pred-card:hover {
    border-color: var(--sevenm-primary, #7a0019) !important;
    background: #ffffff !important;
}

.hp-pred-card-thumb {
    position: relative;
    width: 100%;
    height: 88px;
    overflow: hidden;
    background: #0c1a24;
    border-radius: 0 !important;
}

.hp-pred-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    border: none !important;
}

.hp-pred-badge-league {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(14, 34, 56, 0.9);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-radius: 0 !important;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 2px solid var(--sevenm-primary, #7a0019);
}

.hp-pred-card-body {
    padding: 5px 2px 2px 2px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.hp-pred-meta {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hp-pred-title {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 4px 0;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 700;
}

.hp-pred-title a {
    color: #1e293b;
    text-decoration: none;
}

.hp-pred-title a:hover {
    color: var(--sevenm-primary, #7a0019);
}

.hp-pred-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3px;
    border-top: 1px dashed #e2e8f0;
    margin-top: 2px;
}

.hp-pred-btn-read {
    color: var(--sevenm-primary, #7a0019);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.hp-pred-btn-read:hover {
    text-decoration: underline;
    color: var(--sevenm-primary-hover, #b30000);
}

.hp-pred-btn-h2h {
    color: var(--sevenm-primary, #7a0019);
    font-size: 14px;
    text-decoration: none;
}

.hp-pred-btn-h2h:hover {
    text-decoration: underline;
}

/* Friendship Links (.link) */
.link-box {
    background: #ffffff;
    border: 1px solid #cccccc;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 15px;
}
.link-box .link_title {
    font-weight: bold;
    color: #333333;
    margin-bottom: 6px;
    font-size: 16px;
}
.link-box .link_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.link-box .link_list a {
    color: #555555;
    font-size: 15px;
    text-decoration: none;
}
.link-box .link_list a:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* ==========================================================================
   MODERN RED-PLUM & DEEP-DARK FOOTER DESIGN
   ========================================================================== */
.s7m-new-footer {
    width: 100%;
    background-color: #141414;
    border-top: 4px solid var(--sevenm-primary, #7a0019);
    color: #cbd5e1;
    margin-top: 24px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
}

/* Trust Bar */
.s7m-footer-trust-bar {
    background-color: #1a1a1a;
    border-bottom: 1px solid #262626;
    padding: 14px 0;
}
.s7m-footer-trust-container {
    width: 1250px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: left !important;
}
.s7m-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid #262626;
    padding-right: 12px;
    text-align: left !important;
}
.s7m-trust-item div {
    text-align: left !important;
}
.s7m-trust-item:last-child {
    border-right: none;
}
.s7m-trust-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}
.s7m-trust-item strong {
    display: block;
    color: #ffffff;
    font-size: 13.5px;
    letter-spacing: 0.5px;
    text-align: left !important;
}
.s7m-trust-item p {
    margin: 2px 0 0 0;
    color: #888888;
    font-size: 12px;
    line-height: 1.3;
    text-align: left !important;
}

/* Main Columns */
.s7m-footer-main {
    padding: 36px 0 28px 0;
}
.s7m-footer-main-container {
    width: 1250px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1.4fr 1.6fr;
    gap: 32px;
    text-align: left !important;
}
.s7m-fcol {
    display: flex;
    flex-direction: column;
    text-align: left !important;
}
.s7m-fcol-logo {
    margin-bottom: 14px;
}
.s7m-fcol-desc {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0 0 16px 0;
}
.s7m-fcol-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.s7m-fbtn {
    display: block;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background 0.15s ease;
    text-align: left;
}
.s7m-fbtn-tg {
    background: #0284c7;
    color: #ffffff !important;
}
.s7m-fbtn-tg:hover {
    background: #0369a1;
}
.s7m-fbtn-zalo {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff !important;
    border: 1px solid var(--sevenm-primary-hover, #9e1030);
}
.s7m-fbtn-zalo:hover {
    background: var(--sevenm-primary-hover, #9e1030);
}

.s7m-fcol-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    padding-left: 10px;
    border-left: 3px solid var(--sevenm-primary, #7a0019);
    text-transform: uppercase;
    text-align: left !important;
}
.s7m-flinks {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}
.s7m-flinks li {
    margin-bottom: 10px;
    text-align: left !important;
}
.s7m-flinks a {
    color: #cbd5e1;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
    display: inline-block;
    text-align: left !important;
}
.s7m-flinks a:hover {
    color: var(--sevenm-secondary, #ffd800) !important;
    padding-left: 4px;
}

/* App QR & Buttons */
.s7m-fapp-wrap {
    display: flex;
    gap: 12px;
    background: #1e1e1e;
    border: 1px solid #2b2b2b;
    padding: 10px;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.s7m-fapp-qr {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 3px;
    box-sizing: border-box;
}
.s7m-fapp-qr img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.s7m-fapp-text {
    flex: 1;
}
.s7m-fapp-btns {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.s7m-app-btn {
    display: block;
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff !important;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background 0.15s ease;
}
.s7m-app-btn:hover {
    background: var(--sevenm-primary-hover, #9e1030);
}
.s7m-app-android {
    background: #27272a;
    border: 1px solid #3f3f46;
}
.s7m-app-android:hover {
    background: #3f3f46;
}

/* Bottom Legal & Disclaimer */
.s7m-footer-bottom {
    background-color: #0c0c0c;
    border-top: 1px solid #1f1f1f;
    padding: 20px 0 24px 0;
}
.s7m-footer-bottom-container {
    width: 1250px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}
.s7m-disclaimer-box {
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.6;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 14px;
    margin-bottom: 14px;
    text-align: justify;
}
.s7m-disclaimer-box p {
    margin: 0;
}
.s7m-disclaimer-box span {
    display: block;
    margin-bottom: 4px;
    text-align: left;
}
.s7m-copyright-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
}

/* ==========================================================================
   MODALS (Timezone, League Selector, Odds Guide)
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.modal-box {
    background: #ffffff;
    border: 2px solid #366594;
    width: 500px;
    max-width: 95vw;
}
.modal-header {
    background: #4278ad;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header .btn-close {
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}
.modal-body {
    padding: 12px;
    font-size: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Goal Popup Toast (Disabled by default, styled with modern flat gradient when manually active) */
#goal-toast {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #b91c1c 0%, #7a0019 100%);
    color: #ffffff;
    padding: 10px 18px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    z-index: 10000;
    border-radius: 6px;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* ==========================================================================
   7M Match Analysis & Tips Box Styles
   ========================================================================== */
.analysis-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f4f9;
    border: 1px solid #ccd0d4;
    padding: 6px 12px;
    margin-bottom: 8px;
    font-size: 15px;
}
.analysis-topbar .topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.analysis-topbar .topbar-left a {
    color: #141414;
    text-decoration: none;
}
.analysis-topbar .topbar-left a:hover {
    text-decoration: underline;
}
.analysis-topbar .topbar-current {
    font-weight: bold;
    color: #cc0000;
}
.analysis-topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.analysis-topbar .btn-live-switch {
    color: var(--sevenm-primary, #7a0019);
    font-weight: bold;
    text-decoration: none;
}
.analysis-topbar .btn-odds-switch {
    color: #141414;
    font-weight: bold;
    text-decoration: none;
}

.match-banner-box {
    background: #ffffff;
    border: 1px solid #cccccc;
    padding: 16px;
    margin-bottom: 10px;
    text-align: center;
}
.match-banner-league {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
}
.match-banner-row h2 {
    font-size: 22px;
    color: var(--sevenm-primary, #7a0019);
    margin-bottom: 4px;
}
.match-team-sub {
    font-size: 15px;
    color: #666666;
}
.team-rank-badge {
    font-size: 15px;
    color: #888888;
}
.banner-score-main {
    font-size: 32px;
    font-weight: bold;
    color: #cc0000;
    line-height: 1;
}
.banner-status-text {
    font-size: 14px;
    font-weight: bold;
    color: var(--sevenm-primary, #7a0019);
    margin-top: 4px;
}
.banner-ht-text {
    font-size: 14px;
    color: #888888;
}

.analysis-tabs .tabs-track {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.analysis-tabs a {
    display: inline-block;
    padding: 5px 12px;
    background: #ffffff;
    border: 1px solid #ccd0d4;
    color: #141414;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.analysis-tabs a:hover,
.analysis-tabs a.active {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    border-color: var(--sevenm-primary, #7a0019);
}

.tips-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 15px;
}
.tips-table td {
    padding: 6px 10px;
}
.tips-badge {
    display: inline-block;
    padding: 1px 4px;
    font-size: 13px;
    font-weight: bold;
    margin: 0 1px;
}
.tips-badge-w { background: #e6f4ea; color: #137333; border: 1px solid #ceead6; }
.tips-badge-d { background: #fef7e0; color: #b06000; border: 1px solid #feefc3; }
.tips-badge-l { background: #fce8e6; color: #c5221f; border: 1px solid #fad2cf; }

.tips-analysis-box {
    background: #fcf8e3;
    border: 1px solid #faebcc;
    border-left: 4px solid #f0ad4e;
    padding: 10px 14px;
    margin: 10px 0 6px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
}

.h2h-summary-bar {
    background: #eef5fc;
    border: 1px solid #d0e1f9;
    border-left: 4px solid #366594;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #1e3a8a;
    margin-bottom: 6px;
}

#live-match-score {
    font-size: 36px;
}

/* Basketball LiveScore Animations & UI */
.live-glow {
    color: #cc0000 !important;
    font-weight: bold;
    animation: basketLiveGlow 1.2s infinite alternate;
}
@keyframes basketLiveGlow {
    from { opacity: 1; }
    to { opacity: 0.4; }
}

.point-flash {
    background-color: #fee2e2 !important;
    animation: pointFlashAnim 2s ease-out;
}
@keyframes pointFlashAnim {
    0% { background-color: #fca5a5; }
    100% { background-color: transparent; }
}

.search-basket-box input {
    height: 28px;
    line-height: 28px;
    border: 1px solid #ccc;
    font-size: 15px;
    padding: 0 8px;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
}

/* ==========================================================================
   SINGLE POST LAYOUT & 7M SPORTS SIDEBAR
   Compliant with Global Rules: border-radius: 0, box-shadow: none
   ========================================================================== */
.single-layout-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 1250px;
    max-width: 100%;
    margin: 8px auto;
    box-sizing: border-box;
    align-items: flex-start;
}

.single-main-col {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}

.single-sidebar {
    width: 320px;
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-article-card {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    padding: 16px 20px;
    font-size: 16px;
    line-height: 1.65;
    color: #24292f;
    margin-bottom: 8px;
}

.single-breadcrumb {
    font-size: 14.5px;
    color: #64748b;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}
.single-breadcrumb a {
    color: #475569;
    text-decoration: none;
}
.single-breadcrumb a:hover {
    color: var(--sevenm-primary, #7a0019);
}

.single-title {
    font-size: 24px;
    line-height: 1.35;
    color: var(--sevenm-primary, #7a0019);
    font-weight: 700;
    margin: 8px 0 10px 0;
}

.single-meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}
.single-meta .meta-sep {
    color: #cbd5e1;
}
.single-league-tag {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 8px;
    text-transform: uppercase;
}

.single-match-quickbar {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 8px 12px;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.smq-label {
    font-weight: 700;
    color: #166534;
}
.smq-btn {
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
}
.smq-h2h { background: #0284c7; }
.smq-odds { background: #d97706; }
.smq-live { background: #dc2626; }

.single-featured-banner {
    margin-bottom: 16px;
    border: 1px solid #ccd0d4;
    text-align: center;
    background: #0c1a24;
}
.single-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border: none !important;
}
.single-banner-caption {
    background: #f8fafc;
    font-size: 14px;
    color: #64748b;
    padding: 6px 10px;
    border-top: 1px solid #e2e8f0;
    font-style: italic;
}

.single-content-body {
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
    text-align: justify;
}
.single-content-body h2 {
    font-size: 19px;
    font-weight: bold;
    color: var(--sevenm-primary, #7a0019);
    border-left: 4px solid var(--sevenm-primary, #7a0019);
    padding: 6px 10px;
    margin: 18px 0 10px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}
.single-content-body h3 {
    font-size: 17px;
    font-weight: bold;
    color: var(--sevenm-primary, #7a0019);
    margin: 14px 0 6px 0;
}
.single-content-body figure.wp-block-image {
    margin: 14px 0;
    text-align: center;
}
.single-content-body figure.wp-block-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #cbd5e1;
    display: block;
    margin: 0 auto;
}
.single-content-body figcaption {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
    font-style: italic;
}
.single-content-body ul, .single-content-body ol {
    padding-left: 20px;
    margin: 10px 0;
}
.single-content-body li {
    margin-bottom: 4px;
}

.single-tags-row {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.single-tags-row .tag-link a {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 2px 6px;
    text-decoration: none;
}
.single-tags-row .tag-link a:hover {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    border-color: var(--sevenm-primary, #7a0019);
}

.single-prev-next {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    gap: 10px;
}
.single-prev-next .pn-item a {
    color: var(--sevenm-primary, #7a0019);
    text-decoration: none;
}
.single-prev-next .pn-item a:hover {
    color: var(--sevenm-primary-hover, #cc0000);
}

.single-related-box {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    padding: 12px;
    margin-bottom: 8px;
}
.single-related-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--sevenm-primary, #7a0019);
    border-bottom: 2px solid var(--sevenm-primary, #7a0019);
    padding-bottom: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.single-related-header a {
    color: var(--sevenm-primary, #7a0019);
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
}
.single-related-header a:hover {
    color: var(--sevenm-primary-hover, #9e1030);
}
.single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.single-related-item {
    border: 1px solid #e2e8f0;
    padding: 8px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.rel-thumb-link {
    display: block;
    margin-bottom: 6px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #0c1a24;
}
.rel-thumb-img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
    border: none !important;
}
.rel-title {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 6px 0;
    font-weight: 600;
}
.rel-title a {
    color: #1e293b;
    text-decoration: none;
}
.rel-title a:hover {
    color: #cc0000;
}
.rel-date {
    font-size: 13.5px;
    color: #94a3b8;
}

/* Sidebar Box Styles */
.sidebar-box {
    background: #ffffff;
    border: 1px solid #ccd0d4;
}
.sidebar-box-header {
    background: #141414;
    color: #ffffff;
    padding: 7px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid var(--sevenm-primary, #7a0019);
}
.sidebar-box-header .sb-title {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-weight: 700;
}
.sidebar-box-header .sb-icon {
    font-size: 16px;
}
.sidebar-box-header .sb-more {
    color: var(--sevenm-secondary, #ffd800);
    font-size: 14px;
    text-decoration: none;
}
.sidebar-box-header .sb-more:hover {
    color: #ffffff;
    text-decoration: underline;
}
.sidebar-box-content {
    padding: 0;
}

.sb-post-item {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}
.sb-post-item:last-child {
    border-bottom: none;
}
.sb-post-thumb {
    width: 74px;
    height: 46px;
    flex: 0 0 74px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #0c1a24;
}
.sb-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none !important;
}
.sb-post-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-size: 16px;
    color: #94a3b8;
}
.sb-post-info {
    flex: 1;
    min-width: 0;
}
.sb-post-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
    font-size: 13.5px;
}
.sb-badge-league {
    background: #0284c7;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    padding: 1px 5px;
}
.sb-post-date {
    color: #888888;
    font-size: 13px;
}
.sb-post-title {
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
    font-weight: 600;
}
.sb-post-title a {
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sb-post-title a:hover {
    color: #cc0000;
}

.sb-match-item {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}
.sb-match-item:last-child {
    border-bottom: none;
}
.sb-match-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 13.5px;
}
.sb-match-league {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}
.sb-match-time {
    color: #888888;
    font-weight: 600;
    font-size: 13.5px;
}
.sb-match-time.is-live-pulse {
    color: #dc2626;
    font-weight: bold;
    animation: liveBlink 1.5s infinite;
}
.sb-match-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}
.sb-match-team {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-match-home {
    text-align: right;
    padding-right: 6px;
}
.sb-match-away {
    text-align: left;
    padding-left: 6px;
}
.sb-match-score {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 2px 8px;
    font-weight: bold;
    color: var(--sevenm-primary, #7a0019);
    min-width: 38px;
    text-align: center;
    font-size: 15px;
}
.sb-match-score.live-score {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}
.sb-match-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}
.sb-btn-action {
    font-size: 13px;
    padding: 2px 6px;
    text-decoration: none;
    font-weight: 600;
}
.sb-btn-h2h {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
}
.sb-btn-odds {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
}
.sb-btn-live {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.sb-odds-promo {
    padding: 10px;
}
.sb-odds-desc {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 8px;
}
.sb-odds-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #166534;
    font-weight: 600;
}
.sb-odds-btn {
    display: block;
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff !important;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    padding: 7px 10px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.sb-odds-btn:hover {
    background: var(--sevenm-primary-hover, #9e1030);
}

.sb-app-promo {
    padding: 10px;
}
.sb-app-flex {
    display: flex;
    gap: 10px;
    align-items: center;
}
.sb-qr-box {
    text-align: center;
}
.sb-qr-inner {
    border: 1px solid #cbd5e1;
    padding: 2px;
    background: #ffffff;
}
.sb-qr-caption {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}
.sb-app-info {
    flex: 1;
}
.sb-app-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--sevenm-primary, #7a0019);
}
.sb-app-slogan {
    font-size: 14px;
    color: #475569;
    line-height: 1.35;
    margin: 2px 0 8px 0;
}
.sb-app-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sb-app-btn {
    display: block;
    text-align: center;
    padding: 5px 8px;
    font-size: 13.5px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff !important;
    transition: opacity 0.15s ease;
}
.sb-app-btn:hover {
    opacity: 0.9;
}
.sb-app-android {
    background: var(--sevenm-primary, #7a0019);
}
.sb-app-ios {
    background: #141414;
}

/* ==========================================================================
   7M SPORTS CATEGORY & ARCHIVE MAGAZINE LAYOUT
   Compliant with Global Rules: border-radius: 0 !important, box-shadow: none !important
   ========================================================================== */
.category-layout-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 1250px;
    max-width: 100%;
    margin: 8px auto;
    box-sizing: border-box;
    align-items: flex-start;
}

.category-main-col {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}

.category-card-wrap {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

/* Breadcrumb */
.cat-breadcrumb {
    font-size: 14.5px;
    color: #64748b;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
}
.cat-breadcrumb a {
    color: #475569;
    text-decoration: none;
}
.cat-breadcrumb a:hover {
    color: var(--sevenm-primary, #7a0019);
}
.cat-breadcrumb .sep {
    margin: 0 4px;
    color: #cbd5e1;
}

/* Category Header Banner */
.cat-header-banner {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-left: 4px solid var(--sevenm-primary, #7a0019);
    padding: 10px 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.cat-header-left {
    flex: 1 1 300px;
}
.cat-header-title {
    font-size: 22px;
    font-weight: 800;
    color: #141414;
    margin: 0 0 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}
.cat-header-desc {
    font-size: 15px;
    color: #555555;
    margin: 0;
    line-height: 1.45;
}
.cat-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.cat-count-badge {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 3px 8px;
    letter-spacing: 0.3px;
}
.cat-live-status {
    font-size: 13.5px;
    color: var(--sevenm-primary, #7a0019);
    font-weight: bold;
}

/* Quick Filter Toolbar */
.cat-filter-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
}
.cat-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.cat-filter-label {
    font-weight: bold;
    color: #141414;
    margin-right: 4px;
    font-size: 15px;
}
.cat-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 14.5px;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cat-pill:hover {
    background: #e2e8f0;
    color: var(--sevenm-primary, #7a0019);
    border-color: var(--sevenm-primary, #7a0019);
}
.cat-pill.active {
    background: var(--sevenm-primary, #7a0019) !important;
    color: #ffffff !important;
    border-color: var(--sevenm-primary-dark, #5c0013) !important;
    font-weight: bold;
}
.cat-quick-links {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14.5px;
}
.cat-quick-links a {
    color: var(--sevenm-primary, #7a0019);
    text-decoration: none;
    font-weight: 600;
}
.cat-quick-links a:hover {
    color: var(--sevenm-primary-hover, #9e1030);
    text-decoration: underline;
}

/* Hero Spotlight Card (First post on page 1) */
.cat-hero-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--sevenm-primary, #7a0019);
    padding: 12px;
    margin-bottom: 14px;
    display: flex;
    gap: 14px;
    box-sizing: border-box;
}
.cat-hero-thumb {
    width: 380px;
    height: 220px;
    flex: 0 0 380px;
    position: relative;
    overflow: hidden;
    background: #0c1a24;
}
.cat-hero-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}
.cat-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.cat-hero-badge-league {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}
.cat-hero-badge-time {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(12, 26, 36, 0.88);
    color: var(--sevenm-secondary, #ffd800);
    font-size: 13.5px;
    font-weight: bold;
    padding: 3px 8px;
    z-index: 2;
}
.cat-hero-content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cat-hero-spotlight-tag {
    font-size: 14px;
    font-weight: 800;
    color: var(--sevenm-primary, #7a0019);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.cat-hero-title {
    font-size: 20px;
    line-height: 1.35;
    font-weight: bold;
    margin: 0 0 6px 0;
}
.cat-hero-title a {
    color: #111111;
    text-decoration: none;
}
.cat-hero-title a:hover {
    color: var(--sevenm-primary, #7a0019);
}
.cat-hero-matchup {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 5px 10px;
    font-size: 15px;
    font-weight: bold;
    color: var(--sevenm-primary, #7a0019);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cat-hero-excerpt {
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 10px;
}
.cat-hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}
.cat-hero-btn-read {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: bold;
    padding: 6px 14px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s ease;
}
.cat-hero-btn-read:hover {
    background: var(--sevenm-primary-hover, #9e1030);
}
.cat-hero-shortcuts {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 14px;
}
.cat-hero-shortcuts a {
    color: var(--sevenm-primary, #7a0019);
    text-decoration: none;
    padding: 3px 6px;
    background: #f8fafc;
    border: 1px solid var(--sevenm-primary-border, #cbd5e1);
    font-weight: 600;
}
.cat-hero-shortcuts a:hover {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    border-color: var(--sevenm-primary, #7a0019);
}

/* Category Posts Grid (2 columns on desktop) */
.cat-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.cat-grid-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}
.cat-grid-card:hover {
    border-color: var(--sevenm-primary, #7a0019);
}

.cat-card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 145px;
    overflow: hidden;
    background: #0c1a24;
}
.cat-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.cat-badge-league {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 7px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    z-index: 2;
}
.cat-badge-time {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(12, 26, 36, 0.85);
    color: #ffffff;
    font-size: 13px;
    padding: 2px 7px;
    z-index: 2;
}

.cat-card-body {
    padding: 8px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.cat-card-matchup {
    font-size: 13.5px;
    font-weight: bold;
    color: var(--sevenm-primary, #7a0019);
    background: #f8fafc;
    border: 1px solid #eef2f6;
    padding: 3px 6px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-card-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-card-title a {
    color: #111111;
    text-decoration: none;
}
.cat-card-title a:hover {
    color: var(--sevenm-primary, #7a0019);
}
.cat-card-excerpt {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.cat-card-footer {
    padding: 6px 10px;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    gap: 6px;
}
.cat-card-meta-left {
    color: #888888;
    font-size: 13px;
}
.cat-card-meta-right {
    display: flex;
    gap: 6px;
    align-items: center;
}
.cat-card-read-link {
    color: var(--sevenm-primary, #7a0019) !important;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}
.cat-card-read-link:hover {
    text-decoration: underline;
}
.cat-card-mid-link {
    color: var(--sevenm-primary, #7a0019) !important;
    text-decoration: none;
    font-size: 13px;
}
.cat-card-mid-link:hover {
    text-decoration: underline;
}

/* Category Pagination */
.cat-pagination-wrap {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}
.cat-pagination {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.cat-pagination a, 
.cat-pagination span {
    display: inline-block;
    padding: 5px 12px;
    font-size: 15px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    line-height: 1.4;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.cat-pagination a:hover {
    background: #f1f5f9;
    border-color: var(--sevenm-primary, #7a0019);
    color: var(--sevenm-primary, #7a0019);
}
.cat-pagination .current {
    background: var(--sevenm-primary, #7a0019) !important;
    color: #ffffff !important;
    border-color: var(--sevenm-primary-dark, #5c0013) !important;
    font-weight: bold;
}
.cat-pagination .dots {
    border: none;
    background: transparent;
    padding: 4px 6px;
}

/* ==========================================================================
   7M SPORTS NEWS MAGAZINE SPECIFIC STYLES
   Compliant with Global Rules: border-radius: 0 !important, box-shadow: none !important
   ========================================================================== */
.news-ticker-bar {
    display: flex;
    align-items: center;
    background: #0c1a24;
    border: 1px solid #1e293b;
    border-left: 4px solid var(--sevenm-primary, #7a0019);
    margin-bottom: 10px;
    height: 34px;
    overflow: hidden;
    box-sizing: border-box;
}
.news-ticker-badge {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}
.news-ticker-slider {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
}
.news-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.news-ticker-bullet {
    color: var(--sevenm-secondary, #ffd800);
    font-size: 16px;
}
.news-ticker-item a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.15s ease;
}
.news-ticker-item a:hover {
    color: var(--sevenm-secondary, #ffd800);
    text-decoration: underline;
}

.news-banner {
    border-left-color: var(--sevenm-primary, #7a0019) !important;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%) !important;
}

.news-source-tag {
    font-size: 13px;
    color: var(--sevenm-primary, #7a0019);
    font-weight: bold;
    background: #e8f5e9;
    padding: 2px 6px;
    border: 1px solid #c8e6c9;
}

/* ==========================================================================
   Mobile Data Toolbar (Tìm Đội & Lọc Giải) & League Modal
   ========================================================================== */
.m-data-toolbar {
    display: none !important; /* Strictly hidden on desktop, enabled in 7m-responsive.css on mobile */
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    margin: 4px 0 6px 0;
    box-sizing: border-box;
    width: 100%;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.m-tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 6px;
    height: 30px;
    line-height: 28px;
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid var(--sevenm-primary, #7a0019);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.m-tb-btn:hover, .m-tb-btn:active {
    background: var(--sevenm-primary-hover, #900020);
    color: #ffffff;
}
.m-tb-badge {
    font-size: 11px;
    font-weight: normal;
    color: var(--sevenm-secondary, #ffd800);
}

.m-tb-search-wrap {
    flex: 1 1 auto;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}
.m-tb-search-icon {
    position: absolute;
    left: 6px;
    font-size: 12px;
    color: #888888;
    pointer-events: none;
    line-height: 1;
}
.m-tb-search-input {
    width: 100%;
    height: 30px;
    padding: 3px 22px 3px 22px;
    font-size: 13px;
    border: 1px solid #cccccc;
    background: #fdfdfd;
    color: #111111;
    box-sizing: border-box;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
}
.m-tb-search-input:focus {
    border-color: var(--sevenm-primary, #7a0019);
    background: #ffffff;
}
.m-tb-search-clear {
    position: absolute;
    right: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #999999;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.m-tb-search-clear:hover {
    color: #cc0000;
}

.m-tb-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666666;
    white-space: nowrap;
    padding-left: 4px;
    border-left: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.m-tb-status strong {
    color: #cc0000;
}
.m-tb-reset {
    color: var(--sevenm-primary, #7a0019);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* Modal Overlay & Container */
.m-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99998;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.m-league-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 460px;
    max-height: 82vh;
    background: #ffffff;
    border: 2px solid var(--sevenm-primary, #7a0019);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.m-lm-header {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--sevenm-header-border, #5a0013);
    flex-shrink: 0;
}
.m-lm-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}
.m-lm-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    font-weight: bold;
}

.m-lm-tools {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 8px;
    background: #f4f6f8;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.m-lm-tool-btn {
    background: transparent;
    border: none;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    text-decoration: none;
}
.m-lm-tool-btn:hover {
    color: var(--sevenm-primary, #7a0019);
    text-decoration: underline;
}
.m-lm-tool-sep {
    color: #cbd5e1;
    font-size: 12px;
}

.m-lm-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}
.m-lm-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 8px;
}
@media (max-width: 360px) {
    .m-lm-list {
        grid-template-columns: 1fr;
    }
}
.m-lm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}
.m-lm-item label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}
.m-lm-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: var(--sevenm-primary, #7a0019);
}
.m-lm-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    flex-shrink: 0;
}
.m-lm-name {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-lm-badge {
    font-size: 11.5px;
    color: #64748b;
    margin-left: 4px;
    flex-shrink: 0;
    font-weight: 600;
}

.m-lm-footer {
    padding: 8px 10px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}
.m-lm-apply-btn {
    width: 100%;
    padding: 8px 16px;
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    border: 1px solid var(--sevenm-primary, #7a0019);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.m-lm-apply-btn:hover {
    background: var(--sevenm-primary-hover, #900020);
}

/* ==========================================================================
   7M Odds Settings Modal & Controls (Exact 7M Specification)
   Rules: border-radius: 0 !important; box-shadow: none !important;
   ========================================================================== */

/* Toolbar controls */
.odds-toolbar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #fdf8f8;
    border-bottom: 1px solid #ebd3d7;
    padding: 6px 10px;
}
.odds-toolbar-ctrls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.odds-ctrl-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #475569;
}
.odds-ctrl-lbl {
    font-weight: 500;
}
.odds-select-ctrl {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 13px;
    padding: 2px 6px;
    height: 26px;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    cursor: pointer;
}
.odds-select-ctrl:focus {
    border-color: var(--sevenm-primary, #7a0019);
}
.btn-odds-opt {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff !important;
    border: 1px solid var(--sevenm-header-border, #7a0019);
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.btn-odds-opt:hover {
    background: var(--sevenm-primary-hover, #900020);
    border-color: var(--sevenm-primary-hover, #900020);
}

/* Modal Overlay & Dialog */
.odds-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
}
.odds-settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #b8c2cc;
    z-index: 99999;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit;
    box-sizing: border-box;
}
.odds-modal-header {
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 !important;
}
.odds-modal-title {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.odds-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.odds-modal-close:hover {
    color: var(--sevenm-secondary, #ffd800);
}
.odds-modal-body {
    padding: 12px;
    background: #ffffff;
}
.odds-opt-sec {
    margin-bottom: 12px;
}
.odds-opt-sec:last-child {
    margin-bottom: 0;
}
.odds-opt-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}
.odds-opt-sub {
    font-size: 12px;
    color: #64748b;
    font-weight: normal;
}
.odds-opt-grid {
    display: grid;
    gap: 6px;
}
.odds-opt-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.odds-opt-btn {
    background: #f8fafc;
    border: 1px solid #d1d5db;
    color: #334155;
    padding: 7px 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: nowrap;
    transition: all 0.15s ease;
    user-select: none;
}
.odds-opt-btn:hover {
    border-color: var(--sevenm-primary, #7a0019);
    color: var(--sevenm-primary, #7a0019);
    background: var(--sevenm-primary-light, #fff5f5);
}
.odds-opt-btn.active {
    background: var(--sevenm-primary, #7a0019) !important;
    border-color: var(--sevenm-primary, #7a0019) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Modal Footer */
.odds-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}
.odds-footer-btn {
    padding: 5px 16px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid transparent;
}
.odds-btn-cancel {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
}
.odds-btn-cancel:hover {
    background: #f8fafc;
    color: #1e293b;
}
.odds-btn-confirm {
    background: var(--sevenm-primary, #7a0019);
    border-color: var(--sevenm-primary, #7a0019);
    color: #ffffff;
}
.odds-btn-confirm:hover {
    background: var(--sevenm-primary-hover, #900020);
    border-color: var(--sevenm-primary-hover, #900020);
}

/* Sound Activation Prompt & Tooltip (Browser Autoplay Unlock) */
#btn-sound-toggle {
    position: relative;
}

.sevenm-sound-prompt {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 999999;
    background: var(--sevenm-primary, #7a0019);
    color: #ffffff;
    border: 1px solid var(--sevenm-header-border, #550011);
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.sevenm-sound-prompt .s-prompt-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
}
.sevenm-sound-prompt .s-prompt-icon {
    font-size: 15px;
    display: inline-block;
    flex-shrink: 0;
}
.sevenm-sound-prompt .s-prompt-text {
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
}
.sevenm-sound-prompt .s-prompt-close {
    background: transparent;
    border: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ffcccc;
    font-size: 13px;
    margin-left: 6px;
    padding: 0 4px;
    cursor: pointer;
    line-height: 1;
}
.sevenm-sound-prompt .s-prompt-close:hover {
    color: #ffffff;
}

/* Tooltip Mode (Anchored directly under speaker icon #btn-sound-toggle) */
.sevenm-sound-prompt.is-tooltip {
    position: absolute !important;
    top: calc(100% + 7px) !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 99999 !important;
    width: max-content !important;
    max-width: 340px !important;
    white-space: nowrap !important;
    background: var(--sevenm-primary, #7a0019) !important;
    color: #ffffff !important;
    border: 1px solid var(--sevenm-header-border, #550011) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    box-sizing: border-box;
    animation: sevenmFadeInTooltip 0.2s ease-out;
}
.sevenm-sound-prompt.is-tooltip .s-prompt-inner {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.3;
    width: auto !important;
    height: auto !important;
    color: #ffffff !important;
}
.sevenm-sound-prompt.is-tooltip .s-prompt-icon {
    font-size: 13px;
    line-height: 1;
}
.sevenm-sound-prompt.is-tooltip .s-prompt-text {
    font-weight: 600;
    letter-spacing: 0.1px;
    color: #ffffff !important;
}
.sevenm-sound-prompt.is-tooltip .s-prompt-close {
    background: transparent;
    border: none;
    color: #ffcccc;
    font-size: 12px;
    margin-left: 6px;
    padding: 0 2px;
    cursor: pointer;
    line-height: 1;
}
.sevenm-sound-prompt.is-tooltip .s-prompt-close:hover {
    color: #ffffff;
}

/* Tooltip Arrow pointing UP directly at #btn-sound-toggle */
.sevenm-sound-prompt.is-tooltip::before,
.sevenm-sound-prompt.is-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    pointer-events: none;
}
.sevenm-sound-prompt.is-tooltip::before {
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent var(--sevenm-header-border, #550011) transparent;
}
.sevenm-sound-prompt.is-tooltip::after {
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent var(--sevenm-primary, #7a0019) transparent;
    margin-bottom: -1px;
}

@keyframes sevenmFadeInTooltip {
    from {
        opacity: 0;
        transform: translate(-50%, -4px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 640px) {
    .sevenm-sound-prompt:not(.is-tooltip) {
        left: 12px;
        right: 12px;
        bottom: 12px;
        text-align: center;
    }
    .sevenm-sound-prompt:not(.is-tooltip) .s-prompt-inner {
        justify-content: space-between;
    }
}
