/* ==========================================================================
   7M SPORTS CORE STYLESHEET (Desktop & Base Layout)
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Flat UI Reset: Loại bỏ hoàn toàn box-shadow và text-shadow trên toàn bộ website */
*,
*::before,
*::after {
  box-shadow: none;
  text-shadow: none;
}

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--sevenm-font-family);
  font-size: 13px;
  line-height: 1.5;
  color: var(--sevenm-text-main);
  background-color: #f0f2f5;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: var(--sevenm-primary-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--sevenm-accent);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Utilities */
.sevenm-container {
  width: 100%;
  max-width: var(--sevenm-container-width, 1220px);
  margin: 0 auto;
  padding: 0 12px;
}

.sevenm-flex {
  display: flex;
}

.sevenm-flex-between {
  justify-content: space-between;
}

.sevenm-flex-center {
  justify-content: center;
}

.sevenm-flex-wrap {
  flex-wrap: wrap;
}

.sevenm-items-center {
  align-items: center;
}

.sevenm-text-center { text-align: center; }
.sevenm-text-right { text-align: right; }
.sevenm-text-left { text-align: left; }

.sevenm-divider {
  color: #ccc;
  margin: 0 8px;
}

.sevenm-card {
  background: #ffffff;
  border-radius: var(--sevenm-radius-box, 5px);
  padding: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  margin-bottom: 16px;
}

/* 1. Top Utility Bar */
.sevenm-top-bar {
  background-color: var(--sevenm-topbar-bg, #1a2a22);
  color: #c0d0c8;
  font-size: 12px;
  height: 32px;
  border-bottom: 1px solid var(--sevenm-topbar-border, #284435);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sevenm-top-bar .sevenm-container {
  height: 100%;
}

.sevenm-color-switcher {
  margin-right: 10px;
  gap: 3px;
}

.sevenm-color-label {
  font-size: 11px;
  color: #99a8a0;
  margin-right: 2px;
}

.sevenm-color-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s;
  display: inline-block;
}

.sevenm-color-dot.color-green  { background: #008855; }
.sevenm-color-dot.color-blue   { background: #0066cc; }
.sevenm-color-dot.color-red    { background: #cc0000; }
.sevenm-color-dot.color-purple { background: #7b2cbf; }
.sevenm-color-dot.color-orange { background: #e65100; }
.sevenm-color-dot.color-gold   { background: #b8860b; }

.sevenm-color-dot:hover,
.sevenm-color-dot.active {
  transform: scale(1.3);
  box-shadow: none;
  border-color: #ffffff;
}

.sevenm-font-switcher {
  margin-right: 8px;
  gap: 2px;
}

.sevenm-font-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #c0d0c8;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 10px;
  cursor: pointer;
}

.sevenm-font-btn:hover,
.sevenm-font-btn.active {
  background: var(--sevenm-primary, #008855);
  color: #ffffff;
  border-color: var(--sevenm-primary-light, #00a86b);
}

.sevenm-darkmode-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.sevenm-darkmode-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.sevenm-darkmode-toggle .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: #f59e0b;
}

.sevenm-badge-gmt {
  background: var(--sevenm-primary, #008855);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  margin-right: 8px;
}

.sevenm-sound-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
  transition: all 0.2s ease;
}

.sevenm-sound-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.sevenm-sound-toggle .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: #10b981;
}

/* Top Utility Bar Buttons (Affiliate / CTA) */
.sevenm-header-aff-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sevenm-aff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 90px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--sevenm-radius-btn, 5px);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
  transition: all 0.2s ease;
}

.sevenm-aff-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: none;
}

.sevenm-aff-btn.color-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
}

.sevenm-aff-btn.color-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff !important;
}

.sevenm-aff-btn.color-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff !important;
}

.sevenm-aff-btn.color-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
}

.sevenm-aff-btn.color-blue {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff !important;
}

.sevenm-aff-btn.color-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff !important;
}

.sevenm-mobile-header-actions {
  display: none;
  gap: 8px;
}

.sevenm-mobile-aff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 14px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  text-decoration: none;
}

/* Dropdown */
.sevenm-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 8px;
}

.sevenm-dropdown-btn {
  background: var(--sevenm-primary-dark, #284435);
  color: #fff;
  border: 1px solid var(--sevenm-primary-darker, #3c664f);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sevenm-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 140px;
  border: 1px solid #cbd5e1;
  box-shadow: none;
  border-radius: var(--sevenm-radius-btn, 5px);
  z-index: 1000;
  overflow: hidden;
}

.sevenm-dropdown:hover .sevenm-dropdown-menu {
  display: block;
}

.sevenm-dropdown-menu a {
  display: block;
  padding: 6px 12px;
  color: #333;
  font-size: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.sevenm-dropdown-menu a:hover,
.sevenm-dropdown-menu a.active {
  background: var(--sevenm-table-header, #e9f3ec);
  color: var(--sevenm-primary, #008855);
  font-weight: bold;
}

/* 2. Main Header */
.sevenm-main-header {
  background: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.sevenm-brand-text {
  font-size: 26px;
  font-weight: 900;
  color: var(--sevenm-primary, #008855);
  letter-spacing: -1px;
}

.sevenm-brand-accent {
  color: #ff6600;
}

.sevenm-brand-sub {
  display: block;
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 2. Header Ads Slot (Supports 1 or 2 Banners Side-by-Side) */
.sevenm-main-header .sevenm-header-ad {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
  max-width: 960px;
  margin: 0 0 0 20px;
  min-width: 0;
}

.sevenm-header-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 728px;
  min-width: 0;
  flex: 0 1 auto;
}

.sevenm-header-ad.has-two-banners .sevenm-header-ad-slot {
  max-width: 468px;
  flex: 1 1 0;
}

.sevenm-header-ad-slot img,
.sevenm-header-ad-slot a img {
  max-width: 100% !important;
  height: auto !important;
  max-height: 65px;
  display: block;
  border-radius: 4px;
}

.sevenm-header-ad .sevenm-ad-placeholder {
  min-width: 260px;
  max-width: 468px;
  height: 55px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 11.5px;
  border-radius: 4px;
  padding: 0 16px;
  text-align: center;
}

.sevenm-mobile-toggle {
  display: none;
}

/* 3. Main Navigation (Tier 1: 4 Sports with Submenu) */
.sevenm-main-nav {
  background: var(--sevenm-primary-dark, #00663f);
  border-bottom: 2px solid var(--sevenm-primary-darker, #004d2f);
  position: relative;
  z-index: 200;
}

.sevenm-nav-list {
  list-style: none;
}

.sevenm-nav-item {
  position: relative;
}

.sevenm-nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, color 0.2s;
}

.sevenm-nav-item:hover > a,
.sevenm-nav-item.active > a,
.sevenm-nav-item.current-menu-item > a,
.sevenm-nav-item.current_page_item > a,
.sevenm-nav-item.current-menu-ancestor > a,
.sevenm-nav-item.current_page_parent > a {
  background: var(--sevenm-primary, #008855);
  color: #ffffff;
}

.sevenm-sport-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.sevenm-nav-svg {
  display: block;
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.sevenm-sport-emoji {
  font-size: 14px;
}

.sevenm-arrow {
  font-size: 12px;
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.sevenm-nav-item:hover .sevenm-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown Sub-menu */
.sevenm-dropdown-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: none;
  border-radius: 0 0 var(--sevenm-radius-btn, 5px) var(--sevenm-radius-btn, 5px);
  border-top: 2px solid var(--sevenm-primary, #008855);
  list-style: none;
  z-index: 1000;
  padding: 4px 0;
}

.sevenm-nav-item:hover .sevenm-dropdown-submenu {
  display: block;
}

.sevenm-dropdown-submenu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #333333;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #f2f2f2;
  border-right: none;
  transition: all 0.15s ease;
}

.sevenm-dropdown-submenu li:last-child a {
  border-bottom: none;
}

.sevenm-dropdown-submenu li a:hover,
.sevenm-dropdown-submenu li.active a {
  background: var(--sevenm-table-header, #f0f7f3);
  color: var(--sevenm-primary, #008855);
  font-weight: 700;
}

.sevenm-btn-refresh {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.sevenm-btn-refresh:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 4. Sub-Navigation Bar for Active Sport (Tier 2) */
.sevenm-subnav-bar {
  background: #ffffff;
  border-bottom: 2px solid var(--sevenm-primary, #008855);
  box-shadow: none;
}

.sevenm-current-sport-tag {
  display: none !important;
}

.sevenm-subview-tab-list {
  list-style: none;
}

.sevenm-subview-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: #444;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.sevenm-subview-item.active a {
  color: var(--sevenm-primary, #008855);
  border-bottom-color: var(--sevenm-primary, #008855);
  background: var(--sevenm-table-header, #f4faf6);
}

.sevenm-subview-item a:hover {
  color: var(--sevenm-primary, #008855);
  background: #fafafa;
}

.sevenm-live-counter {
  display: inline-block;
  background: #e60000;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 5px;
  line-height: 14px;
  min-width: 18px;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sevenm-counter-pulse {
  animation: sevenmPulse 0.8s ease-in-out;
}

@keyframes sevenmPulse {
  0% { transform: scale(1); background-color: #e60000; }
  50% { transform: scale(1.35); background-color: #ff3333; }
  100% { transform: scale(1); background-color: #e60000; }
}

.sevenm-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.sevenm-search-box .dashicons {
  position: absolute;
  left: 8px;
  color: #999;
}

.sevenm-search-box input {
  padding: 6px 10px 6px 28px;
  border: 1px solid #d0d7de;
  border-radius: 16px;
  font-size: 12px;
  width: 180px;
  outline: none;
  transition: width 0.2s;
}

.sevenm-search-box input:focus {
  width: 240px;
  border-color: var(--sevenm-primary, #008855);
}

/* 5. Filter Bar Controls - Synchronized Dimensions (32px Standard Height) */
.sevenm-filter-bar {
  --sevenm-filter-height: 32px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: var(--sevenm-radius-box, 5px);
  margin: 12px 0 10px 0;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  gap: 12px;
  flex-wrap: wrap;
}

.sevenm-filter-left {
  gap: 8px;
  flex-wrap: wrap;
}

.sevenm-btn-filter-league {
  height: var(--sevenm-filter-height, 32px);
  background: var(--sevenm-primary, #008855);
  color: #ffffff;
  border: 1px solid var(--sevenm-primary, #008855);
  padding: 0 8px!important;
  border-radius: var(--sevenm-radius-btn, 5px);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s;
}

.sevenm-btn-filter-league:hover {
  background: var(--sevenm-primary-dark, #00663f);
  border-color: var(--sevenm-primary-dark, #00663f);
}

.sevenm-btn-filter-league .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.sevenm-btn-filter-league .sevenm-hidden-count {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 600;
}

.sevenm-status-tabs {
  gap: 4px;
  display: inline-flex;
  align-items: center;
}

.sevenm-tab-btn {
  height: var(--sevenm-filter-height, 32px);
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 0 11px;
  border-radius: var(--sevenm-radius-btn, 5px);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  white-space: nowrap;
  transition: all 0.15s;
}

.sevenm-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.sevenm-tab-btn.active {
  background: var(--sevenm-primary, #008855);
  color: #ffffff;
  border-color: var(--sevenm-primary, #008855);
  font-weight: 700;
}

.sevenm-tab-live.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.sevenm-live-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.sevenm-filter-right {
  gap: 8px;
  display: inline-flex;
  align-items: center;
}

.sevenm-filter-date-picker {
  height: var(--sevenm-filter-height, 32px);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0 8px;
  border-radius: var(--sevenm-radius-item, 5px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  box-shadow: none;
  transition: border-color 0.15s;
}

.sevenm-filter-date-picker:hover,
.sevenm-filter-date-picker:focus-within {
  border-color: #94a3b8;
}

.sevenm-filter-date-picker label {
  cursor: pointer;
  color: var(--sevenm-primary, #008855);
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.sevenm-filter-date-picker label .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
}

.sevenm-filter-date-picker input[type="date"] {
  height: 100%;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: #334155;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 30px;
}

.sevenm-sort-btn {
  height: var(--sevenm-filter-height, 32px);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  white-space: nowrap;
  transition: all 0.15s;
}

.sevenm-sort-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.sevenm-sort-btn .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  color: #64748b;
}

.sevenm-bookmaker-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sevenm-bookmaker-select label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  line-height: 1;
}

.sevenm-bookmaker-select select {
  height: var(--sevenm-filter-height, 32px);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0 24px 0 10px;
  border-radius: var(--sevenm-radius-item, 5px);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: #334155;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  box-shadow: none;
  transition: border-color 0.15s;
}

.sevenm-bookmaker-select select:hover,
.sevenm-bookmaker-select select:focus {
  border-color: #94a3b8;
}

/* 6. Live Score Table */
.sevenm-match-table-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--sevenm-radius-box, 5px);
  box-shadow: none;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.sevenm-desktop-table-container {
  width: 100%;
  overflow-x: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #c1c9d2 #f4f6f8;
}

.sevenm-desktop-table-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.sevenm-desktop-table-container::-webkit-scrollbar-track {
  background: #f4f6f8;
  border-radius: 3px;
}

.sevenm-desktop-table-container::-webkit-scrollbar-thumb {
  background: #c1c9d2;
  border-radius: 3px;
}

.sevenm-desktop-table-container::-webkit-scrollbar-thumb:hover {
  background: var(--sevenm-primary, #008855);
}

.sevenm-live-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.sevenm-live-table thead th {
  background: var(--sevenm-table-header, #eaf3ec);
  color: var(--sevenm-primary-dark, #005a36);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border-bottom: 2px solid var(--sevenm-primary, #008855);
  border-right: 1px solid #dce8df;
  text-align: center;
}

.sevenm-live-table thead th.sevenm-th-group {
  border-bottom: 1px solid #c9ded0;
}

.sevenm-thead-sub th {
  background: var(--sevenm-table-subhead, #f4faf6) !important;
  font-weight: 600;
  font-size: 11px;
}

.sevenm-live-table tbody td {
  padding: 7px 6px;
  border-bottom: 1px solid #e9ecef;
  border-right: 1px solid #f4f6f8;
  font-size: 12px;
}

.sevenm-match-row:nth-child(even) {
  background-color: #fafbfc;
}

.sevenm-match-row:hover {
  background-color: #fffbe6 !important;
}

/* ----------------------------------------------------
   Live Match Event Animations (Distinct Vibration & Color Shifts)
   Replaces popup modal: in-place table row & mobile card highlight
   ---------------------------------------------------- */
.sevenm-event-vibrate {
  animation: sevenmEventVibrate 1.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
  will-change: transform;
  position: relative !important;
  z-index: 5 !important;
}

@keyframes sevenmEventVibrate {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  12% { transform: translateX(-4px) translateY(-1px) rotate(-0.8deg); }
  24% { transform: translateX(4px) translateY(1px) rotate(0.8deg); }
  36% { transform: translateX(-5px) translateY(0) rotate(-0.5deg); }
  48% { transform: translateX(4px) translateY(-1px) rotate(0.5deg); }
  60% { transform: translateX(-3px) translateY(1px) rotate(-0.3deg); }
  72% { transform: translateX(3px) translateY(0) rotate(0.2deg); }
  84% { transform: translateX(-1px) translateY(0) rotate(0deg); }
  100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

/* Event Color Shifts */
.sevenm-event-color-goal {
  animation: sevenmEventColorGoal 5s ease-out forwards !important;
}

@keyframes sevenmEventColorGoal {
  0% { background-color: #ef4444 !important; color: #ffffff !important; }
  15% { background-color: #f59e0b !important; color: #111827 !important; }
  35% { background-color: #fef08a !important; color: #111827 !important; }
  70% { background-color: #fef3c7 !important; color: inherit; }
  100% { background-color: #fef9c3 !important; color: inherit; }
}

.sevenm-event-color-red {
  animation: sevenmEventColorRed 5s ease-out forwards !important;
}

@keyframes sevenmEventColorRed {
  0% { background-color: #b91c1c !important; color: #ffffff !important; }
  20% { background-color: #dc2626 !important; color: #ffffff !important; }
  45% { background-color: #fca5a5 !important; color: #7f1d1d !important; }
  100% { background-color: #fee2e2 !important; color: inherit; }
}

.sevenm-event-color-ft {
  animation: sevenmEventColorFt 5s ease-out forwards !important;
}

@keyframes sevenmEventColorFt {
  0% { background-color: #047857 !important; color: #ffffff !important; }
  25% { background-color: #10b981 !important; color: #ffffff !important; }
  50% { background-color: #6ee7b7 !important; color: #064e3b !important; }
  100% { background-color: #d1fae5 !important; color: inherit; }
}

/* Score Punch Animation */
.sevenm-score-punch {
  animation: sevenmScorePunch 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
  display: inline-block !important;
}

@keyframes sevenmScorePunch {
  0% { transform: scale(1); }
  25% { transform: scale(1.65); color: #dc2626 !important; font-weight: 900 !important; }
  60% { transform: scale(1.25); color: #ea580c !important; }
  100% { transform: scale(1); }
}

/* Legacy Alias for compatibility */
.sevenm-row-flash-goal {
  animation: sevenmEventColorGoal 5s ease-out forwards !important;
}

/* Pin Button & Pinned Match Styles */
.sevenm-pin-btn {
  cursor: pointer;
  color: #a0aec0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.sevenm-pin-btn:hover {
  color: #f59e0b;
  transform: scale(1.18);
}

.sevenm-pin-btn.pinned {
  color: #f59e0b !important;
}

.sevenm-pin-btn.pinned i {
  color: #f59e0b !important;
}

.sevenm-mcard-pin-btn {
  margin-right: 6px;
  font-size: 15px;
  color: #9ca3af;
}

.sevenm-mcard-pin-btn:hover,
.sevenm-mcard-pin-btn.pinned {
  color: #f59e0b !important;
}

/* Pinned Row & Card Highlights */
.sevenm-match-row.sevenm-row-pinned,
.sevenm-basket-row.sevenm-row-pinned,
.sevenm-tennis-row.sevenm-row-pinned,
.sevenm-volleyball-row.sevenm-row-pinned,
tr.sevenm-row-pinned {
  background-color: #fffdf0 !important;
  border-left: 3px solid #f59e0b !important;
}

.sevenm-match-row.sevenm-row-pinned:hover,
.sevenm-basket-row.sevenm-row-pinned:hover,
.sevenm-tennis-row.sevenm-row-pinned:hover,
.sevenm-volleyball-row.sevenm-row-pinned:hover {
  background-color: #fff9db !important;
}

.sevenm-mobile-match-card.sevenm-mcard-pinned {
  border-left: 4px solid #f59e0b !important;
  background-color: #fffdf5;
  box-shadow: none;
}

/* League Cell: Full Background Color with Crisp White Text */
td.td-league {
  color: #ffffff !important;
  text-align: center;
  vertical-align: middle;
  padding: 4px 6px !important;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 105px;
}

td.td-league a,
td.td-league span,
.sevenm-league-tag {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  display: block;
  text-align: center;
  text-shadow: none;
}

/* Live Badge & Blinking Minute Effect */
.sevenm-badge-live {
  background: #e60000;
  color: #ffffff !important;
  padding: 2px 7px;
  border-radius: var(--sevenm-radius-item, 5px);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: none;
  animation: sevenm-live-badge-blink 1s ease-in-out infinite alternate;
}

.sevenm-live-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: none;
  animation: sevenm-live-dot-blink 0.7s ease-in-out infinite alternate;
}

@keyframes sevenm-live-badge-blink {
  0% {
    background-color: #cc0000;
  }
  100% {
    background-color: #ff1e1e;
  }
}

@keyframes sevenm-live-dot-blink {
  0% {
    opacity: 0.25;
    transform: scale(0.65);
  }
  100% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Live Time (Giờ Trận Đang Live Nhấp Nháy) */
.sevenm-time-live,
.sevenm-row-live .td-time .sevenm-time-text,
.sevenm-mobile-match-card[data-is-live="1"] .sevenm-mcard-time,
.sevenm-mcard-live .sevenm-mcard-time {
  color: #e60000 !important;
  font-weight: 700 !important;
  display: inline-block;
  animation: sevenm-live-time-blink 1.2s ease-in-out infinite alternate;
}

@keyframes sevenm-live-time-blink {
  0% {
    opacity: 1;
    color: #e60000;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    color: #ff3333;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    color: #cc0000;
    transform: scale(1);
  }
}

/* Live Row & Card Highlight */
.sevenm-row-live {
  background-color: #fff9f9 !important;
  border-left: 3px solid #e60000 !important;
}

.sevenm-row-live:hover {
  background-color: #fff1f1 !important;
}

[data-theme="dark"] .sevenm-row-live {
  background-color: rgba(65, 18, 18, 0.45) !important;
  border-left: 3px solid #ff3333 !important;
}

[data-theme="dark"] .sevenm-row-live:hover {
  background-color: rgba(80, 22, 22, 0.55) !important;
}

.sevenm-mobile-match-card[data-is-live="1"],
.sevenm-mcard-live {
  border-left: 3px solid #e60000 !important;
  background: #fff9f9 !important;
}

[data-theme="dark"] .sevenm-mobile-match-card[data-is-live="1"],
[data-theme="dark"] .sevenm-mcard-live {
  border-left: 3px solid #ff3333 !important;
  background: rgba(65, 18, 18, 0.45) !important;
}

.sevenm-badge-ft {
  background: #6c757d;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.sevenm-badge-sched {
  color: #666;
  font-size: 11px;
}

.sevenm-team-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
}

.sevenm-team-logo {
  margin: 0 4px;
  border-radius: 50%;
}

.sevenm-card-red {
  background: #e60000;
  color: #fff;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: bold;
  margin: 0 2px;
}

.sevenm-card-yellow {
  background: #ffaa00;
  color: #000;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: bold;
  margin: 0 2px;
}

.sevenm-score-val {
  font-size: 14px;
  font-weight: 800;
  color: #000;
}

.sevenm-row-live .sevenm-score-val {
  color: #e60000;
  font-size: 15px;
}

.sevenm-odds-box {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: #f7f9fa;
  border: 1px solid #e1e4e8;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.odds-handicap-val,
.odds-ou-val {
  font-weight: bold;
  color: var(--sevenm-primary-dark, #00663f);
}

.sevenm-btn-h2h {
  background: #f0f2f5;
  border: 1px solid #d0d7de;
  color: #444;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.sevenm-btn-h2h:hover {
  background: var(--sevenm-primary, #008855);
  color: #fff;
  border-color: var(--sevenm-primary, #008855);
}

/* 7. Standings & Results Styles */
.sevenm-date-nav-bar {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 12px 0;
  border: 1px solid #e0e0e0;
}

.sevenm-date-tabs {
  gap: 6px;
}

.sevenm-date-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  background: #f5f6f8;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  color: #333;
  font-size: 11px;
}

.sevenm-date-tab.active,
.sevenm-date-tab:hover {
  background: var(--sevenm-primary, #008855);
  color: #fff;
  border-color: var(--sevenm-primary, #008855);
}

.sevenm-date-tab .date-day { font-weight: bold; }

.sevenm-date-input {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
}

.sevenm-btn-date-submit {
  background: var(--sevenm-primary, #008855);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  margin-left: 6px;
  cursor: pointer;
}

.sevenm-league-nav-tabs {
  gap: 8px;
  margin-bottom: 12px;
}

.sevenm-league-tab-btn {
  background: #ffffff;
  border: 1px solid #dcdfe6;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.sevenm-league-tab-btn.active {
  background: var(--sevenm-primary, #008855);
  color: #fff;
  border-color: var(--sevenm-primary, #008855);
}

.sevenm-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eee;
  color: #333;
  font-size: 11px;
  font-weight: bold;
}

.rank-top4 { background: #1a73e8 !important; color: #fff !important; }
.rank-top5 { background: #ff9800 !important; color: #fff !important; }
.rank-bottom { background: #d93025 !important; color: #fff !important; }

.badge-win { background: #28a745; color: #fff; padding: 1px 5px; border-radius: 2px; font-size: 10px; font-weight: bold; }
.badge-draw { background: #ffc107; color: #000; padding: 1px 5px; border-radius: 2px; font-size: 10px; font-weight: bold; }
.badge-loss { background: #dc3545; color: #fff; padding: 1px 5px; border-radius: 2px; font-size: 10px; font-weight: bold; }

/* 8. Modals & Popups */
.sevenm-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sevenm-modal-dialog {
  background: #ffffff;
  border-radius: var(--sevenm-radius-box, 5px);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #cbd5e1;
  box-shadow: none;
  overflow: hidden;
}

.sevenm-modal-lg {
  max-width: 800px;
}

.sevenm-modal-header {
  background: var(--sevenm-primary-dark, #00663f);
  color: #fff;
  padding: 12px 16px;
}

.sevenm-modal-title {
  font-size: 16px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sevenm-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.sevenm-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.sevenm-modal-footer {
  background: #f5f6f8;
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
}

.sevenm-btn-mini {
  background: var(--sevenm-table-header, #e9f3ec);
  border: 1px solid var(--sevenm-primary-light, #a3c9b0);
  color: var(--sevenm-primary-dark, #00663f);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}

.sevenm-btn-major {
  background: #ffeedd;
  border-color: #ffaa66;
  color: #cc5500;
  font-weight: bold;
}

.sevenm-league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.sevenm-league-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: #fafafa;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #eee;
  cursor: pointer;
}

.sevenm-btn-apply {
  background: var(--sevenm-primary, #008855);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.sevenm-btn-cancel {
  background: #eee;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* Detail Scoreboard */
.sevenm-detail-scoreboard {
  background: linear-gradient(135deg, var(--sevenm-primary-dark, #005a36), var(--sevenm-primary, #008855));
  color: #fff;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.sevenm-detail-score {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 6px 0;
}

.sevenm-detail-tabs {
  gap: 6px;
  border-bottom: 2px solid var(--sevenm-primary, #008855);
  margin-bottom: 12px;
}

.sevenm-detail-tab-btn {
  background: #f0f2f5;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
}

.sevenm-detail-tab-btn.active {
  background: var(--sevenm-primary, #008855);
  color: #fff;
}

.sevenm-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.sevenm-detail-table th {
  background: #f5f6f8;
  padding: 6px;
  border-bottom: 1px solid #ddd;
}

.sevenm-detail-table td {
  padding: 6px;
  border-bottom: 1px solid #eee;
}

/* 9. Toast */
.sevenm-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--sevenm-radius-item, 5px);
  font-size: 13px;
  font-weight: bold;
  z-index: 10000;
  display: none;
  box-shadow: none;
}

/* 10. Footer */
.sevenm-main-footer {
  background: var(--sevenm-footer-bg, #0f1d17);
  border-top: 3px solid var(--sevenm-primary, #008855);
  color: #99a8a0;
  padding: 24px 0 60px 0;
  margin-top: 30px;
  font-size: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sevenm-footer-links a {
  color: var(--sevenm-footer-link, #a3c9b7);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sevenm-footer-links a:hover {
  color: var(--sevenm-footer-hover, #4ade80);
  text-decoration: underline;
}

.sevenm-footer-links .sevenm-divider {
  color: var(--sevenm-footer-border, #1a3327);
  margin: 0 8px;
  user-select: none;
}

.sevenm-footer-disclaimer {
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

.sevenm-copyright {
  margin-top: 10px;
  color: #778880;
}

.sevenm-copyright strong {
  color: var(--sevenm-primary-light, #00a86b);
}

/* Floating Banners */
.sevenm-float-banner {
  position: fixed;
  top: 120px;
  width: 120px;
  z-index: 900;
}

.sevenm-float-left { left: 10px; }
.sevenm-float-right { right: 10px; }

/* ==========================================================================
   11. PAGE HEADER & H1 TITLE ICONS
   ========================================================================== */
.sevenm-page-header {
  background: #ffffff;
  border-radius: var(--sevenm-radius-box, 5px);
  padding: 10px 16px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--sevenm-primary, #008855);
  box-shadow: none;
}

.sevenm-page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sevenm-primary-dark, #005a36);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.sevenm-page-title .dashicons {
  font-size: 20px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  color: var(--sevenm-primary, #008855);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sevenm-page-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--sevenm-primary-dark, #005a36);
  background: var(--sevenm-table-header, #e6f4ea);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ==========================================================================
   12. COLLAPSIBLE PAGE CONTENT & SEO BOX
   ========================================================================== */
.sevenm-page-content-section {
  margin-top: 18px;
  margin-bottom: 24px;
}

.sevenm-page-content-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--sevenm-radius-box, 5px);
  padding: 18px 20px;
  box-shadow: none;
  position: relative;
  transition: all 0.3s ease;
}

.sevenm-content-box-header {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
  gap: 10px;
}

.sevenm-content-header-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--sevenm-radius-item, 5px);
  background: var(--sevenm-table-header, #e6f4ea);
  color: var(--sevenm-primary, #008855);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sevenm-content-header-icon .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.sevenm-content-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sevenm-primary-dark, #005a36);
  margin: 0;
  line-height: 1.4;
}

.sevenm-content-box-body {
  position: relative;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sevenm-content-box-body.collapsed {
  max-height: 140px;
}

.sevenm-content-box-body.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 90%);
  pointer-events: none;
}

.sevenm-content-box-body.expanded {
  max-height: 3500px;
}

.sevenm-content-inner {
  font-size: 13.5px;
  line-height: 1.75;
  color: #4a5568;
}

.sevenm-content-inner h2,
.sevenm-content-inner h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #2d3748;
  margin: 14px 0 6px 0;
}

.sevenm-content-inner p {
  margin-bottom: 10px;
}

.sevenm-content-inner ul,
.sevenm-content-inner ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

.sevenm-content-inner li {
  margin-bottom: 6px;
}

.sevenm-content-inner code {
  background: #edf2f7;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: #c53030;
}

.sevenm-content-box-toggle {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.sevenm-btn-toggle-content {
  background: #f7fafc;
  color: var(--sevenm-primary, #008855);
  border: 1px solid #cbd5e0;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sevenm-btn-toggle-content:hover {
  background: var(--sevenm-table-header, #e6f4ea);
  border-color: var(--sevenm-primary, #008855);
  color: var(--sevenm-primary-dark, #005a36);
}

.sevenm-btn-toggle-content .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   13. BREADCRUMBS NAVIGATION (Semantic & Accessible)
   ========================================================================== */
.sevenm-breadcrumbs-bar {
  margin: 10px 0 12px 0;
  font-size: 12px;
}

.sevenm-breadcrumbs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.sevenm-crumb-item {
  display: inline-flex;
  align-items: center;
}

.sevenm-crumb-link {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sevenm-crumb-link:hover {
  color: var(--sevenm-primary, #008855);
}

.sevenm-crumb-link .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.sevenm-crumb-separator {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
}

.sevenm-crumb-separator .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
}

.sevenm-crumb-current {
  color: var(--sevenm-primary-dark, #005a36);
  font-weight: 600;
}

/* ==========================================================================
   IN-TABLE INTERLEAVED ADS (Banners / Affiliates / Custom HTML)
   ========================================================================== */
.sevenm-row-ad {
  background: #f8fafc;
}

.sevenm-row-ad:hover {
  background: #f1f5f9;
}

.sevenm-td-ad {
  padding: 8px 10px !important;
  text-align: center !important;
  border-top: 1px dashed #cbd5e1 !important;
  border-bottom: 1px dashed #cbd5e1 !important;
  vertical-align: middle !important;
}

.sevenm-in-table-ad-box {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
}

.sevenm-in-table-ad-box a {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sevenm-in-table-ad-box a:hover {
  opacity: 0.92;
  transform: scale(1.005);
}

.sevenm-in-table-ad-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.sevenm-mcard-ad {
  margin: 8px 0;
  padding: 8px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--sevenm-radius-box, 5px);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: none;
}

/* ==========================================================================
   VIETNAMESE NEWS ARCHIVE & LIST LAYOUT (VnExpress / Bongdaplus Style)
   ========================================================================== */
.sevenm-news-archive-page {
  padding-bottom: 24px;
}

/* Category Header Banner Box */
.sevenm-category-header-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--sevenm-radius-box, 5px);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: none;
}

.sevenm-cat-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sevenm-cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sevenm-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--sevenm-table-header, #eaf3ec);
  color: var(--sevenm-primary, #008855);
  border-radius: 8px;
}

.sevenm-cat-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.sevenm-category-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
}

.sevenm-cat-badge-count {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.sevenm-btn-cat-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sevenm-btn-cat-action:hover {
  color: #ff6600;
  border-color: #ff6600;
  background: #fff8f0;
}

.sevenm-category-description {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
}

.sevenm-category-description p {
  margin: 0;
}

/* Subcategory Tabs */
.sevenm-subcat-tabs {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  gap: 8px;
}

.sevenm-subcat-tab {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 16px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sevenm-subcat-tab:hover {
  background: var(--sevenm-table-header, #eaf3ec);
  color: var(--sevenm-primary, #008855);
  border-color: var(--sevenm-primary-light, #00a86b);
}

.sevenm-subcat-tab.active {
  background: var(--sevenm-primary, #008855);
  color: #ffffff;
  border-color: var(--sevenm-primary, #008855);
}

/* News Main Container */
.sevenm-news-layout-wrapper {
  margin-top: 14px;
}

.sevenm-news-main-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--sevenm-radius-box, 5px);
  padding: 16px 20px;
  box-shadow: none;
}

.sevenm-news-list {
  display: flex;
  flex-direction: column;
}

/* News List Item (Left Image, Right Info) */
.sevenm-news-item {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  align-items: flex-start;
  transition: background-color 0.2s ease;
}

.sevenm-news-item:last-child {
  border-bottom: none;
}

/* Left: Thumbnail */
.sevenm-news-thumb-wrap {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
  aspect-ratio: 16 / 10;
}

.sevenm-news-thumb {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.sevenm-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sevenm-news-item:hover .sevenm-news-img {
  transform: scale(1.06);
}

.sevenm-news-placeholder {
  width: 100%;
  height: 100%;
  min-height: 130px;
  background: linear-gradient(135deg, #1a2332 0%, #0f172a 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.placeholder-icon {
  font-size: 26px;
  line-height: 1;
}

.placeholder-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--sevenm-primary-light, #4ade80);
}

/* Right: News Content Info */
.sevenm-news-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.sevenm-news-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--sevenm-primary, #008855);
  background: var(--sevenm-table-header, #eaf3ec);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
  width: fit-content;
}

.sevenm-news-cat-badge:hover {
  opacity: 0.85;
}

.sevenm-news-title {
  margin: 0 0 6px 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
}

.sevenm-news-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sevenm-news-title a:hover {
  color: var(--sevenm-primary, #008855);
}

.sevenm-news-excerpt {
  margin: 0 0 10px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sevenm-news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.sevenm-news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sevenm-news-meta-item .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
  color: #94a3b8;
}

.sevenm-meta-divider {
  color: #cbd5e1;
}

/* Auto Load More & Infinite Scroll Container */
.sevenm-loadmore-wrapper {
  margin-top: 14px;
}

.sevenm-scroll-trigger {
  height: 10px;
  width: 100%;
}

.sevenm-loadmore-action-box {
  padding: 16px 0 8px 0;
}

.sevenm-btn-loadmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 32px;
  border-radius: var(--sevenm-radius-btn, 5px);
  font-size: 13.5px;
  font-weight: 700;
  background: #ffffff;
  color: var(--sevenm-primary, #008855);
  border: 1.5px solid var(--sevenm-primary, #008855);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: none;
}

.sevenm-btn-loadmore:hover {
  background: var(--sevenm-primary, #008855);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: none;
}

.sevenm-btn-loadmore:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.sevenm-btn-loadmore .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.dashicons.spin {
  animation: sevenmSpin 1s linear infinite;
}

@keyframes sevenmSpin {
  100% {
    transform: rotate(360deg);
  }
}

.sevenm-no-more-msg {
  padding: 18px 0 8px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.sevenm-no-more-msg .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: var(--sevenm-primary, #008855);
  vertical-align: middle;
}

/* Empty State */
.sevenm-empty-posts-box {
  padding: 40px 20px;
  text-align: center;
}

.sevenm-empty-posts-box .empty-icon .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.sevenm-empty-posts-box h3 {
  font-size: 17px;
  color: #334155;
  margin-bottom: 6px;
}

.sevenm-empty-posts-box p {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 18px;
}

.sevenm-btn-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sevenm-primary, #008855);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.sevenm-btn-home:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Live Match Event Overlay Modal (Goals, Red Cards, HT/FT Transitions)
   ========================================================================== */
.sevenm-event-overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end; /* Hiển thị xuống phía dưới màn hình */
  justify-content: center;
  padding-bottom: 35px;
  pointer-events: none; /* Không chặn click ra ngoài trang */
  transition: opacity 0.25s ease;
}

.sevenm-event-modal {
  pointer-events: auto; /* Cho phép tương tác modal */
  position: relative;
  width: 92%;
  max-width: 450px;
  background: #ffffff;
  border-radius: var(--sevenm-radius-box, 5px);
  box-shadow: none;
  overflow: hidden;
  border: 2px solid var(--sevenm-primary, #008855);
  transform-origin: bottom center;
}

.sevenm-event-modal.sevenm-event-opening {
  animation: sevenmEventPop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.sevenm-event-modal.sevenm-event-pulse-switch {
  animation: sevenmEventSwitch 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.sevenm-event-modal.sevenm-event-closing {
  animation: sevenmEventClose 0.25s ease forwards;
}

@keyframes sevenmEventPop {
  0% { transform: translateY(30px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes sevenmEventSwitch {
  0% { transform: translateY(0) scale(0.96); }
  50% { transform: translateY(-4px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes sevenmEventClose {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(30px) scale(0.92); opacity: 0; }
}

.sevenm-event-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.sevenm-event-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}

.sevenm-event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.sevenm-event-badge-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}

.sevenm-event-badge-box.sevenm-badge-goal {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.sevenm-event-badge-box.sevenm-badge-red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  animation: redCardShake 0.5s ease-in-out;
}

@keyframes redCardShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.sevenm-event-badge-box.sevenm-badge-ft {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #a5b4fc;
}

.sevenm-event-badge-box.sevenm-badge-ht {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.sevenm-event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.sevenm-event-league-badge {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--sevenm-primary, #008855);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sevenm-event-time {
  color: #ef4444;
  font-weight: 700;
  font-size: 12px;
}

.sevenm-event-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px;
  background: #ffffff;
}

.sevenm-event-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.sevenm-event-logo-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.sevenm-event-logo-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.sevenm-event-tname {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  max-width: 120px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sevenm-event-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.sevenm-event-score-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
  font-family: 'Roboto Mono', -apple-system, monospace;
  line-height: 1;
}

.sevenm-event-score-num {
  min-width: 32px;
  text-align: center;
  color: #ef4444;
  text-shadow: none;
}

.sevenm-event-score-sep {
  color: #94a3b8;
  font-size: 26px;
  margin: 0 2px;
}

.sevenm-event-status-tag {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.sevenm-event-footer {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: #334155;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}

.sevenm-event-progress-wrap {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.sevenm-event-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
}

/* ==========================================================================
   14. SIDEBAR & MINI SPORTS WIDGETS LAYOUT
   ========================================================================== */
.sevenm-layout-with-sidebar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 14px;
}

.sevenm-layout-with-sidebar .sevenm-news-main-container,
.sevenm-layout-with-sidebar .sevenm-single-main-container {
  flex: 1;
  min-width: 0;
}

.sevenm-sidebar {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* General Widget Card */
.sevenm-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--sevenm-radius-box, 5px);
  overflow: hidden;
  box-shadow: none;
}

.sevenm-widget-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-left: 3px solid var(--sevenm-primary, #008855);
}

.sevenm-widget-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.sevenm-widget-title .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
  color: var(--sevenm-primary, #008855);
}

.sevenm-widget-more {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sevenm-primary, #008855);
  text-decoration: none;
  transition: opacity 0.15s;
}

.sevenm-widget-more:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.sevenm-mini-empty-state {
  padding: 18px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sevenm-mini-empty-state .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

/* Pulsing Red Dot for Live Widget */
.sevenm-live-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: none;
  animation: sevenm-pulse-dot 1.5s infinite;
  margin-right: 2px;
}

@keyframes sevenm-pulse-dot {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.7; }
}

/* Mini Item Meta & Badges */
.sevenm-mini-league-badge {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff !important;
  padding: 1px 6px;
  border-radius: 3px;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.sevenm-mini-status-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.sevenm-mini-status-badge.is-live {
  color: #ef4444;
  font-weight: 800;
}

.sevenm-mini-status-badge.is-ft {
  color: #059669;
  font-weight: 800;
}

.sevenm-mini-time-badge {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 3px;
}

.sevenm-mini-time-badge .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
}

/* Mini Live & Results Items */
.sevenm-mini-live-item,
.sevenm-mini-fixture-item,
.sevenm-mini-result-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.sevenm-mini-live-item:last-child,
.sevenm-mini-fixture-item:last-child,
.sevenm-mini-result-item:last-child {
  border-bottom: none;
}

.sevenm-mini-live-item:hover,
.sevenm-mini-fixture-item:hover,
.sevenm-mini-result-item:hover {
  background-color: #f8fafc;
}

.sevenm-mini-teams-row {
  margin-top: 6px;
  gap: 8px;
}

.sevenm-mini-teams-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sevenm-mini-team {
  gap: 6px;
  font-size: 12px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
}

.sevenm-mini-logo {
  border-radius: 2px;
  flex-shrink: 0;
  background: #f1f5f9;
}

.sevenm-mini-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sevenm-mini-score-box {
  min-width: 52px;
  text-align: right;
  flex-shrink: 0;
}

.sevenm-mini-score-val {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.5px;
}

.sevenm-mini-score-val.highlight-live {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.sevenm-mini-score-val.ft-score {
  background: #ecfdf5;
  color: #047857;
}

.sevenm-mini-score-vs {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
}

.sevenm-mini-odds-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
}

.sevenm-card-red-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 2px;
  padding: 0 3px;
  margin-left: 4px;
  line-height: 12px;
  display: inline-block;
}

/* Mini Standings Table */
.sevenm-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.sevenm-mini-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 6px;
  border-bottom: 1px solid #e2e8f0;
}

.sevenm-mini-table tbody td {
  padding: 7px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.sevenm-mini-table tbody tr:last-child td {
  border-bottom: none;
}

.sevenm-mini-table tbody tr:hover td {
  background-color: #f8fafc;
}

.sevenm-mini-rank {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
}

.sevenm-mini-rank.rank-c1 {
  background: #2563eb;
  color: #ffffff;
}

.sevenm-mini-rank.rank-c2 {
  background: #f59e0b;
  color: #ffffff;
}

.sevenm-mini-rank.rank-relegation {
  background: #ef4444;
  color: #ffffff;
}

.sevenm-mini-team-col {
  max-width: 140px;
}

.sevenm-mini-team-name {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 120px;
}

.sevenm-mini-muted {
  color: #64748b;
  font-size: 11.5px;
}

.sevenm-mini-pts {
  color: var(--sevenm-primary, #008855);
  font-weight: 800;
  font-size: 12.5px;
}

/* Mini Posts List */
.sevenm-mini-posts-list {
  display: flex;
  flex-direction: column;
}

.sevenm-mini-post-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  gap: 10px;
  align-items: center;
}

.sevenm-mini-post-item:last-child {
  border-bottom: none;
}

.sevenm-mini-post-rank {
  font-size: 14px;
  font-weight: 800;
  color: #94a3b8;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.sevenm-mini-post-rank.rank-1 { color: #ef4444; }
.sevenm-mini-post-rank.rank-2 { color: #f97316; }
.sevenm-mini-post-rank.rank-3 { color: #eab308; }

.sevenm-mini-post-thumb-wrap {
  width: 65px;
  min-width: 65px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.sevenm-mini-post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sevenm-mini-post-info {
  flex: 1;
  min-width: 0;
}

.sevenm-mini-post-title {
  margin: 0 0 3px 0;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 600;
}

.sevenm-mini-post-title a {
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.sevenm-mini-post-title a:hover {
  color: var(--sevenm-primary, #008855);
}

.sevenm-mini-post-time {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
}

.sevenm-mini-post-time .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   15. SINGLE ARTICLE STYLES (Vietnamese Sports News)
   ========================================================================== */
.sevenm-single-main-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--sevenm-radius-box, 5px);
  padding: 24px 28px;
  box-shadow: none;
}

.sevenm-article-cat-tag {
  margin-bottom: 10px;
}

.sevenm-cat-tag-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sevenm-primary, #008855);
  text-transform: uppercase;
  background: rgba(0, 136, 85, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.sevenm-article-title {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px 0;
  letter-spacing: -0.3px;
}

.sevenm-article-meta-bar {
  padding: 10px 0 14px 0;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 10px;
}

.sevenm-author-avatar-wrap {
  flex-shrink: 0;
}

.sevenm-author-avatar {
  border-radius: 50%;
  display: block;
}

.sevenm-meta-details {
  margin-left: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.sevenm-author-name {
  color: #1e293b;
}

.sevenm-meta-divider {
  margin: 0 6px;
  color: #cbd5e1;
}

.sevenm-meta-share {
  gap: 6px;
}

.sevenm-share-label {
  font-size: 12px;
  color: #64748b;
  margin-right: 4px;
}

.sevenm-share-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.sevenm-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.sevenm-share-btn.btn-fb { background: #1877f2; color: #ffffff; }
.sevenm-share-btn.btn-tw { background: #0f1419; color: #ffffff; }
.sevenm-share-btn.btn-copy { background: #e2e8f0; color: #475569; }

.sevenm-share-btn .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
}

.sevenm-article-sapo {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f8fafc;
  border-left: 4px solid var(--sevenm-primary, #008855);
  border-radius: 0 6px 6px 0;
}

.sevenm-article-sapo p {
  margin: 0;
}

.sevenm-article-featured-media {
  margin-bottom: 20px;
}

.sevenm-featured-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.sevenm-media-caption {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
  text-align: center;
  margin-top: 6px;
}

.sevenm-article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #1e293b;
}

.sevenm-article-body p {
  margin-bottom: 1.25em;
}

.sevenm-article-body h2,
.sevenm-article-body h3,
.sevenm-article-body h4 {
  font-weight: 700;
  color: #0f172a;
  margin: 1.5em 0 0.6em 0;
}

.sevenm-article-body,
.entry-content,
.sevenm-content-inner,
.sevenm-page-card {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Base image rules in content: Centered & Responsive by default */
.entry-content img,
.sevenm-article-body img,
.sevenm-content-inner img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 6px;
}

/* Centering paragraph containing single image */
.entry-content p:has(> img:only-child),
.sevenm-article-body p:has(> img:only-child),
.entry-content p:has(> a:only-child > img:only-child),
.sevenm-article-body p:has(> a:only-child > img:only-child) {
  text-align: center;
}

/* WordPress Standard Alignment Classes */
.aligncenter,
div.aligncenter,
figure.aligncenter,
figure.wp-block-image,
.wp-block-image,
.wp-caption.aligncenter {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  max-width: 100% !important;
  clear: both;
}

.aligncenter img,
img.aligncenter,
figure.aligncenter img,
.wp-block-image img,
.wp-caption img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/* WordPress Left & Right Floated Images */
.alignleft,
figure.alignleft,
img.alignleft {
  float: left;
  margin: 8px 20px 16px 0;
  max-width: 100%;
  height: auto;
}

.alignright,
figure.alignright,
img.alignright {
  float: right;
  margin: 8px 0 16px 20px;
  max-width: 100%;
  height: auto;
}

.alignnone,
figure.alignnone,
img.alignnone {
  display: block;
  margin: 14px auto;
  max-width: 100%;
  height: auto;
}

/* WordPress Captions & Figures */
.wp-caption {
  max-width: 100% !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  margin: 16px auto;
  box-sizing: border-box;
}

.wp-caption-text,
figcaption,
.wp-element-caption,
.sevenm-media-caption {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
  padding: 0 8px;
}

/* Gutenberg Galleries & Columns */
.wp-block-gallery {
  max-width: 100% !important;
  box-sizing: border-box;
}

.wp-block-gallery .wp-block-image {
  margin: 0 !important;
}

/* Responsive Embeds & Iframes in Content */
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object,
.sevenm-article-body iframe,
.sevenm-article-body video,
.sevenm-article-body embed,
.sevenm-article-body object,
.wp-block-embed,
.wp-block-embed__wrapper {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Tables inside content: Prevent breaking containers */
.entry-content table,
.sevenm-article-body table,
.wp-block-table {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 16px 0;
}

.entry-content table th,
.entry-content table td,
.sevenm-article-body table th,
.sevenm-article-body table td {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
}

/* Pre & Code blocks */
.entry-content pre,
.sevenm-article-body pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Ad & Banner Containers: Prevent blowout */
.sevenm-banner-box,
.sevenm-table-top-ad,
.sevenm-header-ad {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  margin: 12px auto;
}

.sevenm-banner-box img,
.sevenm-table-top-ad img,
.sevenm-header-ad img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

.sevenm-article-tags-wrap {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  gap: 6px;
}

.sevenm-tags-icon {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sevenm-tags-icon .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.sevenm-tag-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sevenm-tag-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sevenm-article-signature {
  margin-top: 18px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 13px;
  color: #475569;
}

/* Related Posts */
.sevenm-related-posts-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid #f1f5f9;
}

.sevenm-section-heading {
  gap: 8px;
  margin-bottom: 14px;
}

.sevenm-section-heading .dashicons {
  color: var(--sevenm-primary, #008855);
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.sevenm-section-heading h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
}

.sevenm-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sevenm-related-card {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f8fafc;
  padding: 8px;
  border-radius: var(--sevenm-radius-box, 5px);
  border: 1px solid #f1f5f9;
  transition: transform 0.15s, border-color 0.15s;
}

.sevenm-related-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: none;
}

.sevenm-related-thumb-wrap {
  width: 80px;
  min-width: 80px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}

.sevenm-related-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sevenm-related-info {
  flex: 1;
  min-width: 0;
}

.sevenm-related-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px 0;
}

.sevenm-related-title a {
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sevenm-related-title a:hover {
  color: var(--sevenm-primary, #008855);
}

.sevenm-related-date {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
}

.sevenm-related-date .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   16. RESPONSIVE ADJUSTMENTS FOR SIDEBAR & SINGLE PAGE
   ========================================================================== */
@media (max-width: 991px) {
  .sevenm-layout-with-sidebar {
    flex-direction: column;
  }
  .sevenm-sidebar {
    width: 100%;
    margin-top: 16px;
  }
  .sevenm-single-main-container {
    padding: 16px 14px;
  }
  .sevenm-article-title {
    font-size: 20px;
  }
  .sevenm-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   17. 2-COLUMN LATEST NEWS MODULE (10 POSTS - IMAGE LEFT, TITLE RIGHT)
   ========================================================================== */
.sevenm-latest-news-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--sevenm-radius-box, 5px);
  padding: 18px 20px;
  margin: 16px 0;
  box-shadow: none;
}

.sevenm-module-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}

.sevenm-module-title-wrap {
  gap: 8px;
}

.sevenm-module-icon {
  background: rgba(0, 136, 85, 0.08);
  color: var(--sevenm-primary, #008855);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sevenm-module-icon .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.sevenm-module-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.sevenm-module-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--sevenm-primary, #008855);
  background: rgba(0, 136, 85, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
}

.sevenm-module-more-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--sevenm-primary, #008855);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.15s;
}

.sevenm-module-more-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.sevenm-module-more-link .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* 2-Column Grid */
.sevenm-latest-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

/* Card: Strictly Horizontal (Image on Left, Title on Right) */
.sevenm-grid-news-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sevenm-grid-news-card:nth-last-child(-n+2) {
  border-bottom: none;
}

/* Thumbnail Wrap */
.sevenm-grid-news-thumb-wrap {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  height: 74px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
  position: relative;
  display: block;
}

.sevenm-grid-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.sevenm-grid-news-thumb-wrap:hover .sevenm-grid-news-thumb {
  transform: scale(1.06);
}

.sevenm-grid-news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  font-size: 20px;
}

/* Right Content Body */
.sevenm-grid-news-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 74px;
}

.sevenm-grid-news-top {
  display: flex;
  flex-direction: column;
}

.sevenm-grid-news-cat {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--sevenm-primary, #008855);
  text-transform: uppercase;
  margin-bottom: 3px;
  display: inline-block;
  text-decoration: none;
  line-height: 1.2;
}

.sevenm-grid-news-cat:hover {
  text-decoration: underline;
}

.sevenm-grid-news-title {
  margin: 0 0 4px 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.1px;
}

.sevenm-grid-news-title a {
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.sevenm-grid-news-title a:hover {
  color: var(--sevenm-primary, #008855);
}

.sevenm-grid-news-meta {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.sevenm-grid-news-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sevenm-grid-news-time .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
}

/* 7M Prediction & Match Analysis Layout */
.sevenm-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #1e293b;
  margin-bottom: 16px;
}

.sevenm-pred-figure {
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 !important;
  padding: 0 !important;
  border-radius: var(--sevenm-radius-box, 6px);
  overflow: hidden;
  background-color: #f1f5f9;
}

.sevenm-pred-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: var(--sevenm-radius-box, 6px);
  border: none !important;
}

.sevenm-pred-figure figcaption {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  padding: 8px 12px;
  background-color: #f8fafc;
  font-style: italic;
}

.sevenm-prediction-summary-card {
  width: 100% !important;
  max-width: 100% !important;
  background: #f0fdf4;
  border-radius: var(--sevenm-radius-box, 6px);
  padding: 16px 20px;
  margin: 20px 0;
  border: none !important;
  box-shadow: none !important;
}

.sevenm-prediction-summary-card p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #166534;
  line-height: 1.5;
}

.sevenm-prediction-summary-card p:last-child {
  margin-bottom: 0;
}








