/* =========================================================
   FBPREDICT - MAIN.CSS (Components & Content)
   Version 3.2 - Split File 2/2
   Contains: Layout, Sidebars, Tables, Cards, Footer, 
   Components, and Component-specific Responsive Styles
========================================================= */

/* =========================================================
   LAYOUT
========================================================= */
.main-container {
  padding-top: var(--header-total-space);
  padding-bottom: 30px;
}

#main,
main.container {
  position: relative;
  z-index: 1;
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: flex-start;
}

/* =========================================================
   LEFT SIDEBAR
========================================================= */
.left-sidebar {
  position: sticky;
  top: var(--header-total-space);
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 200px;
}

.side-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 800;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-title::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--primary);
  border-radius: 2px;
}

.side-title-spacing {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

/* Country List */
.country-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  margin-right: -6px;
}

.country-list::-webkit-scrollbar { 
  width: 4px; 
}

.country-list::-webkit-scrollbar-track { 
  background: transparent; 
}

.country-list::-webkit-scrollbar-thumb { 
  background: var(--glass-border); 
  border-radius: 4px;
}

.country-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dim);
}

/* Country Item */
.country-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  position: relative;
  transition: all var(--fast) var(--ease);
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.country-item .country-name,
.country-item > span:first-child,
.country-item > a,
.country-item > strong {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-decoration: none;
  text-align: left;
}

.country-item .match-count,
.country-item > span:last-child,
.country-item > small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(6, 182, 212, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.15);
  transition: all var(--fast) var(--ease);
}

.country-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary);
}

.country-item:hover .country-name,
.country-item:hover > span:first-child,
.country-item:hover > a,
.country-item:hover > strong {
  color: var(--text-bright);
}

.country-item:hover .match-count,
.country-item:hover > span:last-child,
.country-item:hover > small {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--primary);
}

.country-item.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.country-item.active .country-name,
.country-item.active > span:first-child,
.country-item.active > a,
.country-item.active > strong {
  color: var(--text-bright);
  font-weight: 700;
}

.country-item.active .match-count,
.country-item.active > span:last-child,
.country-item.active > small {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

/* Quick Links */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-links a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 4px;
  color: var(--text-muted);
  transition: all var(--fast) var(--ease);
  position: relative;
  padding-left: 8px;
}

.quick-links a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s var(--ease);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.quick-links a:hover {
  color: var(--primary-bright);
  padding-left: 16px;
}

.quick-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   CENTER CONTENT
========================================================= */
.center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================================================
   HERO
========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  padding: 0;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: all 0.3s var(--ease);
}

.hero:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-glow);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.hero-main {
  padding: 32px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.02) 0%, rgba(249, 115, 22, 0.01) 100%);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-bright);
  animation: fadeInUp 0.6s var(--ease);
}

.hero-subtitle {
  font-size: 16px;
  margin: 0 0 22px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-disclaimer {
  font-size: 12px;
  color: var(--text-dim);
}

.hero-metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-elevated);
  border-left: 1px solid var(--glass-border);
}

.metric-card {
  padding: 22px 26px;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  border-radius: 0;
  background: transparent;
  transition: all var(--fast) var(--ease);
}

.metric-card:last-child {
  border-bottom: none;
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.metric-label {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 700;
}

.metric-value {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 3px;
  color: var(--text-bright);
  transition: all 0.2s var(--ease);
}

.metric-card:hover .metric-value {
  color: var(--primary-bright);
  transform: scale(1.1);
}

.metric-caption {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Simple Layout */
.hero:not(:has(.hero-main)) {
  display: block;
  padding: 32px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.02) 0%, rgba(249, 115, 22, 0.01) 100%);
}

.hero:not(:has(.hero-main)) h1 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-bright);
}

.hero:not(:has(.hero-main)) > p.muted {
  font-size: 15px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* =========================================================
   WARNING BOX
========================================================= */
.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  margin-top: 20px;
  border-radius: var(--radius-lg);
  background: var(--warning-soft);
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: var(--shadow-sm);
}

.warning-box svg {
  flex-shrink: 0;
  color: var(--warning);
  margin-top: 2px;
}

.warning-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--warning);
  margin-bottom: 6px;
}

.warning-title svg {
  color: var(--warning);
}

.warning-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   BANKER & ACCA CONTAINERS
========================================================= */
#banker-container {
  min-height: 120px;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

/* Override container styles when content is loaded */
#banker-container:has(.tip-card) {
  display: block;
  align-items: initial;
  justify-content: initial;
}

.acca-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.acca-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
}

.acca-card h3,
.acca-card > strong:first-of-type,
.acca-card > div:first-of-type > strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-bright);
  text-align: center;
  padding: 24px 24px 20px;
  margin: 0;
  background: transparent;
  border-bottom: 1px dashed var(--glass-border);
}

.acca-card .acca-matches,
.acca-card > ul,
.acca-card > ol,
.acca-card > div:not(:first-child):not(:last-child) {
  padding: 20px 24px;
  margin: 0;
  background: transparent;
}

.acca-card .match-item,
.acca-card .acca-match,
.acca-card li {
  display: block;
  padding: 16px 20px;
  margin: 0 0 12px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.acca-card .match-item:last-child,
.acca-card .acca-match:last-child,
.acca-card li:last-child {
  margin-bottom: 0;
}

.acca-card .match-item .team,
.acca-card .acca-match .team,
.acca-card li .team,
.acca-card .match-item > span:first-child,
.acca-card .acca-match > span:first-child,
.acca-card li > span:first-child,
.acca-card .match-item > strong,
.acca-card .acca-match > strong,
.acca-card li > strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.acca-card .match-item .pick,
.acca-card .acca-match .pick,
.acca-card li .pick,
.acca-card .match-item > span:last-child,
.acca-card .acca-match > span:last-child,
.acca-card li > span:last-child,
.acca-card .match-item > small,
.acca-card .acca-match > small,
.acca-card li > small {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 6px;
}

.acca-card > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-elevated);
  border-top: 1px solid var(--glass-border);
  margin: 0;
  padding: 0;
}

.acca-card > div:last-child > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  gap: 6px;
  border-right: 1px solid var(--glass-border);
  background: var(--panel);
}

.acca-card > div:last-child > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  gap: 6px;
  background: var(--primary-soft);
}

.acca-card > div:last-child span:first-child,
.acca-card > div:last-child small,
.acca-card > div:last-child > div > *:first-child {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.acca-card > div:last-child span:last-child,
.acca-card > div:last-child strong,
.acca-card > div:last-child > div > *:last-child {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1;
}

/* =========================================================
   SEARCH INPUT
========================================================= */
.search {
  position: relative;
  padding: 12px 18px 12px 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: all var(--normal) var(--ease);
  width: 100%;
  max-width: 340px;
}

.search::placeholder {
  color: var(--text-dim);
  font-weight: 500;
}

.search:hover {
  border-color: var(--primary);
  background: var(--panel-hover);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.search:focus {
  border-color: var(--primary);
  background: var(--panel);
  box-shadow: 0 0 0 4px var(--primary-soft);
  transform: scale(1.01);
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 340px;
}

.search-wrapper::before {
  content: "🔍";
  position: absolute;
  left: 16px;
  font-size: 14px;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity var(--fast) var(--ease);
}

.search-wrapper:hover::before {
  opacity: 0.8;
}

.search-wrapper:focus-within::before {
  opacity: 1;
  color: var(--primary);
}

html[data-theme="light"] .search {
  background: var(--panel);
  color: var(--text-bright);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .search::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .search:hover {
  border-color: var(--primary);
  background: var(--panel-hover);
}

/* =========================================================
   TOOLBAR
========================================================= */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 240px;
}

.pill {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.pill:hover {
  background: var(--primary-soft);
  color: var(--text-bright);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.pill.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
}

html[data-theme="light"] .pill {
  background: transparent;
  color: var(--text-bright);
}

html[data-theme="light"] .pill:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-bright);
}

/* =========================================================
   FILTER PANEL
========================================================= */
.filter-panel {
  margin-top: 4px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.filter-panel button:not(.btn-ghost):not(.text-links-toggle):not(.mobile-nav-btn),
.filter-panel a[class*="tab"],
.filter-panel .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.filter-panel button:not(.btn-ghost):not(.text-links-toggle):hover {
  background: var(--panel-hover);
  color: var(--text);
}

.filter-panel button.active,
.filter-panel a.active,
.filter-panel .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}

.filter-panel button svg,
.filter-panel button .icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

html[data-theme="light"] .filter-panel button:not(.btn-ghost) {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-bright);
}

.date-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-controls input[type="date"] {
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--panel-hover);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: all var(--fast) var(--ease);
}

.date-controls input[type="date"]:focus {
  border-color: var(--primary);
  background: var(--panel);
}

.date-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-pills button,
.date-pills a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--panel-hover);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  text-decoration: none;
}

html[data-theme="light"] .date-pills button,
html[data-theme="light"] .date-pills a {
  color: var(--text-bright);
  background: rgba(0, 0, 0, 0.03);
}

.date-pills button:hover,
.date-pills a:hover {
  background: var(--panel-border);
  color: var(--text-bright);
}

.date-pills button.active,
.date-pills a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================================================
   MATCH CARDS
========================================================= */
.match-card {
  margin-top: 4px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--normal) var(--ease);
  position: relative;
}

.match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-glow);
}

.match-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--glass-border);
}

.league-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
}

.favourite-star {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 16px;
  transition: all var(--fast) var(--ease);
}

.favourite-star:hover {
  background: var(--warning-soft);
  color: var(--warning);
}

.favourite-star.active {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: var(--warning);
}

/* =========================================================
   TABLE - MATCH LIST
========================================================= */
#table {
  width: 100%;
}

.table-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 2fr) 44px minmax(0, 1.4fr) 48px;
  padding: 12px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 700;
  background: var(--panel-hover);
  column-gap: 10px;
}

html[data-theme="light"] .table-head {
  color: var(--text-bright);
  background: rgba(0, 0, 0, 0.02);
}

.table-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 2fr) 44px minmax(0, 1.4fr) 48px;
  align-items: center;
  padding: 14px 20px;
  font-size: 15px;
  column-gap: 10px;
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--fast) var(--ease);
  position: relative;
  color: var(--text);
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .table-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* =========================================================
   TIME COLUMN - LIVE & FT INDICATORS
========================================================= */
.time {
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

/* Live match time - RED color - Multiple selectors for compatibility */
.time.live,
.time.is-live,
.time.playing,
.time[data-status="live"],
.time[data-status="playing"],
.time[data-live="true"],
.table-row.live .time,
.table-row.is-live .time,
.table-row.playing .time,
.table-row[data-status="live"] .time,
.match-row.live .time,
.match-row.is-live .time {
  color: #ef4444 !important;
  font-weight: 700;
}

/* Any time containing ' (minute indicator) should be red when in live context */
.live .time,
.is-live .time,
.playing .time {
  color: #ef4444 !important;
  font-weight: 700;
}

/* Direct styling for times that look like minutes (e.g., 43', 15', 90+3') */
/* This targets times ending with apostrophe via content detection isn't possible in CSS,
   so we rely on class names. Add .live-time class to your HTML */
.live-time,
.time-live,
span.live,
td.live,
div.live {
  color: #ef4444 !important;
  font-weight: 700;
}

/* Pulsing dot before live time */
.time.live::before,
.time.is-live::before,
.time.playing::before,
.live-time::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse 1.5s ease-in-out infinite;
  vertical-align: middle;
}

/* FT (Full Time) - Default/Black color */
.time.ft,
.time.finished,
.time.ended,
.time[data-status="ft"],
.time[data-status="finished"],
.time[data-status="ended"],
.table-row.finished .time,
.table-row.ft .time,
.table-row.ended .time {
  color: var(--text) !important;
  font-weight: 600;
}

/* HT (Half Time) - Muted color */
.time.ht,
.time[data-status="ht"] {
  color: var(--text-muted);
  font-weight: 600;
}

/* Scheduled/Upcoming - Default muted */
.time.scheduled,
.time[data-status="scheduled"] {
  color: var(--text-muted);
  font-weight: 600;
}

/* Postponed/Cancelled - Warning color */
.time.postponed,
.time.cancelled,
.time[data-status="postponed"],
.time[data-status="cancelled"] {
  color: var(--warning);
  font-weight: 600;
  font-style: italic;
}

/* Live indicator dot standalone */
.time .live-dot,
.live-indicator,
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse 1.5s ease-in-out infinite;
  vertical-align: middle;
}

/* Text-based live indicator */
.time-live-text {
  color: #ef4444 !important;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================================
   TEAMS COLUMN
========================================================= */
.teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.team-home {
  font-weight: 700;
  color: var(--text-bright);
  font-size: 14px;
  line-height: 1.25;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.team-away {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* =========================================================
   PREDICTION COLUMN
========================================================= */
.prediction {
  display: flex;
  align-items: center;
  justify-content: center;
}

.prediction-percent-only {
  min-width: 40px;
  padding: 4px 8px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* =========================================================
   PICK COLUMN
========================================================= */
.pick-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pick {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  transition: all var(--fast) var(--ease);
}

.table-row:hover .pick {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* =========================================================
   ODDS COLUMN
========================================================= */
.odd-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.odd-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 600;
  order: 1;
}

.odd-value {
  font-size: 13px;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: 600;
  color: var(--text);
  order: 2;
}

/* =========================================================
   SCORE COLUMN
========================================================= */
.score {
  font-size: 11px;
  text-align: center;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: var(--text-muted);
  font-weight: 600;
}

.status-win .score {
  color: var(--success);
}

.status-lose .score {
  color: var(--danger);
}

/* =========================================================
   RIGHT SIDEBAR
========================================================= */
.right-sidebar {
  position: sticky;
  top: var(--header-total-space);
}

.sponsored-card {
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.sponsored-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sponsored-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-bright);
}

.badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.sponsored-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 500;
}

.sponsored-btn {
  width: 100%;
  justify-content: center;
}

.sponsored-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.right-sidebar > div {
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.right-sidebar > div:last-child {
  margin-bottom: 0;
}

/* =========================================================
   SEO ARTICLE
========================================================= */
.seo-article,
.center > article {
  margin-top: 20px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.seo-article::before,
.center > article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.seo-article > *,
.center > article > * {
  padding: 0 32px;
}

.seo-article h2,
.center > article h2 {
  margin: 0;
  padding: 28px 32px 16px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  background: transparent;
}

.seo-article h3,
.center > article h3 {
  margin: 0;
  padding: 22px 32px 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-bright);
}

.seo-article p,
.center > article p {
  margin: 0;
  padding: 0 32px 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 500;
}

.seo-article ul,
.center > article ul {
  margin: 0;
  padding: 0 32px 14px 52px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 500;
}

.seo-article ul li,
.center > article ul li {
  margin-bottom: 8px;
}

.seo-article ul li:last-child,
.center > article ul li:last-child {
  margin-bottom: 0;
}

.seo-article a,
.center > article a {
  color: var(--primary);
  font-weight: 600;
}

.seo-article a:hover,
.center > article a:hover {
  color: var(--primary-bright);
}

.seo-article strong,
.center > article strong {
  color: var(--text-bright);
  font-weight: 600;
}

.seo-article em,
.center > article em {
  font-style: italic;
  color: var(--text);
}

/* Info Grid */
.info-grid {
  margin: 0;
  padding: 22px 32px 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-grid article {
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  transition: all var(--fast) var(--ease);
}

.info-grid article::before {
  display: none;
}

.info-grid article:hover {
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.info-grid h3 {
  margin: 0;
  padding: 0;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  background: none;
}

.info-grid p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Titles */
.center > section h2[style*="margin-bottom"],
.center > section > h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  margin-top: 70px;
  padding: 0;
  background: transparent;
  border-top: none;
  position: relative;
}

.site-footer > .container {
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.footer-grid > div:first-child {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.footer-grid > div:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 50%;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 500;
}

.site-footer a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-muted);
  transition: all var(--fast) var(--ease);
  position: relative;
  padding-left: 14px;
}

.site-footer a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--fast) var(--ease);
  color: var(--primary);
  font-size: 13px;
}

.site-footer a:hover {
  color: var(--text-bright);
  padding-left: 20px;
}

.site-footer a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Badges */
.site-footer .badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: all var(--fast) var(--ease);
}

.site-footer .badge-warning {
  background: var(--warning);
  color: #fff;
}

.site-footer .badge-success {
  background: var(--success);
  color: #fff;
  text-decoration: none;
}

/* Text Links Bar */
.text-links-bar {
  margin-top: 28px;
  padding: 18px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.text-links-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--danger);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.text-links-label {
  font-weight: 800;
  color: var(--danger);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.text-links-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
  flex-wrap: wrap;
}

.text-links-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
  min-width: 240px;
  gap: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
}

.text-link + .text-link::before {
  content: "•";
  margin: 0 10px;
  color: var(--text-dim);
  font-size: 13px;
}

.text-link a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--fast) var(--ease);
  background: transparent;
  margin: 0;
}

.text-link a::before {
  display: none;
}

.text-link a:hover {
  background: var(--primary-soft);
  color: var(--text-bright);
}

.text-links-toggle {
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--fast) var(--ease);
}

.text-links-toggle:hover {
  background: var(--primary-soft);
  color: var(--text-bright);
}

.text-links-bar .chev {
  transition: transform var(--fast) var(--ease);
  font-size: 16px;
}

.text-links-bar.is-open .chev {
  transform: rotate(180deg);
}

.text-link.is-hidden {
  display: none;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--glass-border);
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-bottom > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom > div:first-child::before {
  content: "©";
  font-size: 16px;
  color: var(--primary);
}

.footer-bottom > div:last-child {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  font-weight: 500;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--primary);
  border-radius: var(--radius);
}

/* =========================================================
   TELEGRAM CTA - HERO SECTION
========================================================= */
.tg-cta {
  --tg1: #2AABEE;
  --tg2: #229ED9;
  
  display: flex !important;
  align-items: center;
  gap: 12px;
  
  width: 100%;
  max-width: 520px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(34, 158, 217, 0.2);
  background: rgba(34, 158, 217, 0.08);
  
  text-decoration: none !important;
  color: inherit !important;
  
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tg-cta::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

.tg-cta:hover {
  border-color: rgba(34, 158, 217, 0.3);
  background: rgba(34, 158, 217, 0.12);
  color: inherit !important;
  transform: none;
}

.tg-cta:hover::after {
  display: none !important;
  width: 0 !important;
}

.tg-cta__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--tg1), var(--tg2));
  flex-shrink: 0;
}

.tg-cta__icon svg {
  width: 20px;
  height: 20px;
}

.tg-cta__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.tg-cta__title {
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.1;
  font-size: 14px;
  color: var(--text-bright);
}

.tg-cta__sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-cta__chip {
  margin-left: auto;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 158, 217, 0.2);
  background: rgba(34, 158, 217, 0.1);
  color: #229ED9;
  flex-shrink: 0;
}

/* =========================================================
   RELATED LINKS SECTION
========================================================= */
.related-links-section {
  margin-top: 32px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.related-links-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--orange), var(--success), var(--primary));
  background-size: 200% 100%;
  animation: gradientSlide 8s linear infinite;
}

.related-links-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.related-links-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft), var(--orange-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.related-links-title-wrap {
  flex: 1;
  min-width: 0;
}

.related-links-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-bright);
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.related-links-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.links-category {
  margin-bottom: 24px;
}

.links-category:last-of-type {
  margin-bottom: 0;
}

.category-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-left: 2px;
}

.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.category-dot-orange { background: var(--orange); }
.category-dot-green { background: var(--success); }
.category-dot-purple { background: #8b5cf6; }
.category-dot-cyan { background: #06b6d4; }

.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.link-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-soft), var(--orange-soft));
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  z-index: -1;
}

.link-chip:hover {
  border-color: var(--primary);
  color: var(--text-bright);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25);
}

.link-chip:hover::before {
  opacity: 1;
}

html[data-theme="light"] .link-chip {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #1e293b;
}

html[data-theme="light"] .link-chip:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: #0f172a;
}

.links-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.view-all-btn:hover {
  background: var(--primary-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

.view-all-btn svg {
  transition: transform 0.25s var(--ease);
}

.view-all-btn:hover svg {
  transform: translateX(4px);
}

html[data-theme="light"] .related-links-section {
  background: #ffffff;
  border-color: #e5e7eb;
}

html[data-theme="light"] .related-links-header {
  border-bottom-color: #e5e7eb;
}

html[data-theme="light"] .related-links-icon {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(249, 115, 22, 0.08));
}

html[data-theme="light"] .links-footer {
  border-top-color: #e5e7eb;
}

/* =========================================================
   BETTING STATS PAGE FIXES
========================================================= */
.top10-badge {
  background: var(--accent, #f97316) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.top10-item .team-name { color: var(--text, #1a1a1a) !important; }
.top10-item .team-record { color: var(--muted, #6b7280) !important; }
.top10-percentage { color: var(--text, #1a1a1a) !important; }
.league-card-title { color: var(--text, #1a1a1a) !important; }
.league-team-name { color: var(--text, #1a1a1a) !important; }
.section-header h3 { color: var(--text, #1a1a1a) !important; }

.subtab { color: var(--muted, #6b7280) !important; }
.subtab:hover { color: var(--accent, #f97316) !important; }
.subtab.is-active {
  color: #ffffff !important;
  background: var(--accent, #f97316) !important;
}

.market-tab { color: var(--muted, #6b7280) !important; }
.market-tab:hover { color: var(--accent, #f97316) !important; }
.market-tab.is-active { color: #ffffff !important; }

.stat-badge {
  background: rgba(249, 115, 22, 0.1) !important;
  color: var(--accent, #f97316) !important;
}

.top10-fill {
  background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
}

/* =========================================================
   BANKER CARD STYLES
========================================================= */
.tip-card {
  width: 100%;
}

.tip-header {
  margin-bottom: 25px;
}

.tip-type {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
}

.all-matches-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.match-row {
  padding: 25px 0;
  border-bottom: 1px solid var(--glass-border);
}

.match-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.match-row:first-child {
  padding-top: 0;
}

.match-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.game-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.match-confidence {
  background: rgba(76, 175, 80, 0.12);
  color: #4CAF50;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.match-details {
  margin-bottom: 12px;
}

.match-teams {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.match-prediction {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.match-time,
.match-league,
.match-odds {
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-time svg,
.match-league svg,
.match-odds svg {
  opacity: 0.6;
}

.confidence-bar {
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 3px;
}

/* =========================================================
   WIN/LOSS RESULT INDICATORS
========================================================= */
.result-indicator {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
}

.result-indicator-inline {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  white-space: nowrap;
}

.won-indicator {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.lost-indicator {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.2);
}

/* =========================================================
   CSS CHANGES FOR main.css
   Find and replace the MODE TOGGLE BUTTONS section
   ========================================================= */

/* =========================================================
   MODE TOGGLE BUTTONS - UPDATED (Smaller & Compact)
========================================================= */
.mode-toggles-container {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.mode-toggles {
  display: flex;
  gap: 3px;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mode-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mode-toggle:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.mode-toggle.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.mode-toggle-icon {
  font-size: 12px;
}

.mode-toggle-label {
  display: inline-block;
}

/* =========================================================
   MODE TOGGLE - TABLET (max-width: 880px)
========================================================= */
@media (max-width: 880px) {
  .mode-toggles {
    gap: 2px;
    padding: 2px;
    border-radius: 5px;
    margin-bottom: 6px;
  }
  
  .mode-toggle {
    padding: 5px 8px;
    font-size: 11px;
    gap: 3px;
    border-radius: 4px;
  }
  
  .mode-toggle-icon {
    font-size: 11px;
  }
}

/* =========================================================
   MODE TOGGLE - MOBILE (max-width: 640px)
========================================================= */
@media (max-width: 640px) {
  .mode-toggles-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .mode-toggles-container::-webkit-scrollbar {
    display: none;
  }
  
  .mode-toggles {
    gap: 2px;
    padding: 2px;
    border-radius: 4px;
    margin-bottom: 6px;
    flex-wrap: nowrap;
    min-width: max-content;
  }
  
  .mode-toggle {
    padding: 4px 7px;
    font-size: 10px;
    gap: 3px;
    border-radius: 3px;
    flex: 0 0 auto;
  }
  
  .mode-toggle-icon {
    font-size: 10px;
  }
  
  .mode-toggle-label {
    font-size: 10px;
  }
}

/* =========================================================
   MODE TOGGLE - SMALL MOBILE (max-width: 420px)
========================================================= */
@media (max-width: 420px) {
  .mode-toggles {
    gap: 1px;
    padding: 2px;
    border-radius: 4px;
    margin-bottom: 4px;
  }
  
  .mode-toggle {
    padding: 4px 6px;
    font-size: 9px;
    gap: 2px;
    border-radius: 3px;
  }
  
  .mode-toggle-icon {
    font-size: 9px;
  }
  
  .mode-toggle-label {
    font-size: 9px;
  }
}

/* =========================================================
   MODE TOGGLE - EXTRA SMALL MOBILE (max-width: 360px)
========================================================= */
@media (max-width: 360px) {
  .mode-toggles {
    gap: 1px;
    padding: 1px;
  }
  
  .mode-toggle {
    padding: 3px 5px;
    font-size: 8px;
    gap: 2px;
  }
  
  .mode-toggle-icon {
    font-size: 8px;
  }
  
  .mode-toggle-label {
    font-size: 8px;
  }
}

/* =========================================================
   LOADING SPINNER
========================================================= */
.loading-spinner {
  margin: 0 auto 16px;
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =========================================================
   RESPONSIVE - TABLET (max-width: 1024px)
========================================================= */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas:
      "center right"
      "left right";
  }

  .left-sidebar { grid-area: left; }
  .center { grid-area: center; }
  .right-sidebar { grid-area: right; position: static; }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero:not(:has(.hero-main)) {
    display: block;
  }

  .hero-metrics {
    border-left: none;
    border-top: 1px solid var(--glass-border);
    flex-direction: row;
  }

  .metric-card {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--glass-border);
  }

  .metric-card:last-child {
    border-right: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Table adjustments for tablet */
  .table-head,
  .table-row {
    grid-template-columns: 45px minmax(0, 2fr) 40px minmax(0, 1.4fr) 44px;
    column-gap: 8px;
  }

  .time { font-size: 11px; }
  .team-home { font-size: 13px; font-weight: 700; }
  .team-away { font-size: 12px; font-weight: 700; }
  .prediction-percent-only { min-width: 36px; padding: 4px 6px; font-size: 10px; }
  .pick { min-width: 32px; height: 32px; font-size: 11px; }
  .score { font-size: 10px; }

  .related-links-section { padding: 24px 20px; border-radius: 16px; }
  .related-links-header { gap: 14px; margin-bottom: 24px; padding-bottom: 18px; }
  .related-links-icon { width: 44px; height: 44px; border-radius: 12px; }
  .related-links-title { font-size: 18px; }
  .related-links-subtitle { font-size: 13px; }
  .links-category { margin-bottom: 20px; }
  .category-label { font-size: 11px; margin-bottom: 12px; }
  .links-grid { gap: 8px; }
  .link-chip { padding: 9px 14px; font-size: 12px; border-radius: 8px; }
  .links-footer { margin-top: 24px; padding-top: 20px; }
  .view-all-btn { padding: 12px 24px; font-size: 13px; }
}

/* =========================================================
   RESPONSIVE - SMALL TABLET (max-width: 880px)
========================================================= */
@media (max-width: 880px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "center"
      "left"
      "right";
  }

  .left-sidebar,
  .right-sidebar {
    position: static;
    min-width: unset;
    top: auto;
  }
  
  .country-list {
    max-height: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .hero-main { padding: 24px; }
  .hero:not(:has(.hero-main)) { padding: 24px; }
  .hero h1 { font-size: 24px; }

  /* Filter Panel - Tablet */
  .filter-panel { padding: 14px 16px; }

  .filter-panel .mode-tabs,
  .filter-panel .filter-tabs,
  .filters-row > div:first-child {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .filter-panel .mode-tabs::-webkit-scrollbar,
  .filter-panel .filter-tabs::-webkit-scrollbar { display: none; }

  .filter-panel .mode-tabs button,
  .filter-panel .filter-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Table adjustments for small tablet */
  .table-head {
    grid-template-columns: 42px minmax(0, 2.1fr) 38px minmax(0, 1.3fr) 40px;
    padding: 10px 16px;
    font-size: 10px;
    column-gap: 6px;
  }

  .table-row {
    grid-template-columns: 42px minmax(0, 2.1fr) 38px minmax(0, 1.3fr) 40px;
    padding: 12px 16px;
    column-gap: 6px;
  }

  .time { font-size: 11px; }
  .team-home { font-size: 13px; font-weight: 700; }
  .team-away { font-size: 12px; font-weight: 700; }
  .prediction-percent-only { min-width: 34px; padding: 4px 6px; font-size: 10px; }
  .pick { min-width: 30px; height: 30px; font-size: 11px; }
  .odd-label { font-size: 8px; }
  .odd-value { font-size: 11px; }
  .score { font-size: 9px; }

  .info-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .site-footer > .container { padding: 30px 26px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  .toolbar { gap: 14px; padding: 14px 16px; }
  .toolbar-right { width: 100%; min-width: unset; }
  .search, .search-wrapper { max-width: 100%; }

  .main-container { padding-top: var(--header-total-space); }
}

/* =========================================================
   RESPONSIVE - MOBILE (max-width: 640px)
========================================================= */
@media (max-width: 640px) {
  .main-container { padding-top: var(--header-total-space); }

  /* Filter Panel Mobile - Compact */
  .filter-panel { padding: 10px 12px; }
  .filters-row { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 8px; 
    margin-bottom: 8px; 
  }
  
  .filter-panel button:not(.btn-ghost):not(.text-links-toggle) { 
    padding: 6px 10px; 
    font-size: 12px; 
  }

  /* Date Controls Row - Compact */
  .date-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    gap: 6px;
    align-items: center;
  }

  .filter-panel #prevDay,
  .filter-panel #nextDay,
  .date-controls > button:first-child,
  .date-controls > button:last-child {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
  }

  .filter-panel #datePicker,
  .date-controls input[type="date"] {
    height: 32px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  /* Favourite Button - Compact */
  .filter-panel .date-favourite-btn,
  .filter-panel button[class*="favourite"],
  .favourite-btn {
    width: 100%;
    height: 32px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  /* Mode Tabs Container (All Predictions, Live Scores, Upcoming) */
  .filter-panel .mode-tabs,
  .filter-panel .filter-tabs,
  .filter-panel .tabs-row,
  .filter-panel > div:has(button),
  .filters-row:has(.mode-tab),
  .filters-row:has([class*="tab"]) {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 0 6px 0 !important;
    scrollbar-width: none !important;
    scroll-snap-type: x mandatory !important;
  }

  .filter-panel .mode-tabs::-webkit-scrollbar,
  .filter-panel .filter-tabs::-webkit-scrollbar,
  .filter-panel .tabs-row::-webkit-scrollbar,
  .filters-row::-webkit-scrollbar { 
    display: none !important; 
  }

  /* Individual Tab Buttons - Small & Compact */
  .filter-panel .mode-tabs button,
  .filter-panel .mode-tabs a,
  .filter-panel .filter-tabs button,
  .filter-panel .filter-tabs a,
  .filter-panel .mode-tab,
  .filter-panel .filter-tab,
  .filter-panel button[class*="tab"],
  .filter-panel a[class*="tab"],
  .filters-row button:not(#prevDay):not(#nextDay):not(.date-favourite-btn):not(.text-links-toggle):not([class*="favourite"]) {
    flex: 0 0 auto !important;
    min-width: auto !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    scroll-snap-align: start !important;
  }

  /* Tab Icons - Smaller */
  .filter-panel .mode-tabs button svg,
  .filter-panel .mode-tabs button .icon,
  .filter-panel .mode-tabs button img,
  .filter-panel .filter-tabs button svg,
  .filter-panel .filter-tabs button .icon,
  .filter-panel button[class*="tab"] svg,
  .filter-panel button[class*="tab"] .icon,
  .filter-panel button[class*="tab"] img {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
  }

  /* Date Pills Row - Compact */
  .filter-panel .date-pills,
  .filter-panel #datePills,
  .date-pills {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 0 !important;
    scrollbar-width: none !important;
    scroll-snap-type: x proximity !important;
  }

  .filter-panel .date-pills::-webkit-scrollbar,
  .filter-panel #datePills::-webkit-scrollbar,
  .date-pills::-webkit-scrollbar { 
    display: none !important; 
  }

  /* Date Pill Buttons - Compact */
  .filter-panel .date-pills button,
  .filter-panel .date-pills a,
  .filter-panel #datePills button,
  .filter-panel #datePills a,
  .date-pills button,
  .date-pills a,
  .date-pill {
    flex: 0 0 auto !important;
    min-width: 58px !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    scroll-snap-align: start !important;
  }

  /* Match Card Mobile */
  .match-card-header { padding: 10px 12px; }
  .league-name { font-size: 11px; }
  .favourite-star { width: 32px; height: 32px; font-size: 14px; }

  /* TABLE - MOBILE OPTIMIZED */
  .table-head {
    grid-template-columns: 38px minmax(0, 2.2fr) 36px minmax(0, 1.2fr) 38px;
    padding: 10px 12px;
    font-size: 9px;
    column-gap: 5px;
  }

  .table-row {
    grid-template-columns: 38px minmax(0, 2.2fr) 36px minmax(0, 1.2fr) 38px;
    padding: 12px 12px;
    font-size: 13px;
    column-gap: 5px;
  }

  .time { font-size: 10px; font-weight: 600; line-height: 1.2; }
  .teams { gap: 3px; min-width: 0; overflow: hidden; }
  .team-home { font-size: 12px; font-weight: 700; line-height: 1.2; }
  .team-away { font-size: 11px; font-weight: 700; line-height: 1.2; }
  .prediction-percent-only { min-width: 32px; padding: 4px 5px; font-size: 10px; border-radius: 6px; }
  .pick { min-width: 30px; height: 30px; font-size: 11px; border-radius: 6px; }
  .pick-container { gap: 6px; }
  .odd-display { gap: 1px; }
  .odd-label { font-size: 7px; }
  .odd-value { font-size: 10px; }
  .score { font-size: 9px; }

  /* Live indicator */
  .time .live-dot,
  .time::before,
  .live-indicator {
    width: 5px;
    height: 5px;
  }

  /* Hero Mobile */
  .hero { border-radius: 18px; }
  .hero-main { padding: 22px 20px; }
  .hero:not(:has(.hero-main)) { padding: 22px 20px; }
  .hero h1 { font-size: 22px; margin: 0 0 10px; }
  .hero-subtitle { font-size: 14px; margin: 0 0 16px; }
  .hero:not(:has(.hero-main)) > p.muted { font-size: 14px; }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 0 12px;
  }

  .hero-actions .btn,
  .hero-actions .btn-ghost {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
  }

  .hero-disclaimer { margin-top: 10px; font-size: 12px; }
  .hero-metrics { flex-direction: column; }

  .metric-card {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 20px;
  }

  .metric-card:last-child { border-bottom: none; }
  .metric-value { font-size: 26px; }
  .metric-label { font-size: 10px; }
  .metric-caption { font-size: 12px; }

  /* Warning Box Mobile */
  .warning-box { padding: 16px 18px; gap: 12px; }
  .warning-title { font-size: 14px; }
  .warning-text { font-size: 13px; }

  /* Banker Container Mobile */
  #banker-container { padding: 20px; min-height: 100px; }

  /* TG CTA Mobile */
  .tg-cta {
    max-width: 100%;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    gap: 12px;
  }

  .tg-cta__icon { width: 42px; height: 42px; border-radius: 12px; }
  .tg-cta__title { font-size: 14px; font-weight: 800; }
  .tg-cta__sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tg-cta__chip { font-size: 11px; padding: 6px 10px; border-radius: 999px; }

  /* SEO Article Mobile */
  .seo-article h2,
  .center > article h2 { padding: 22px 20px 14px; font-size: 20px; }

  .seo-article h3,
  .center > article h3 { padding: 18px 20px 10px; font-size: 17px; }

  .seo-article p,
  .center > article p { padding: 0 20px 12px; font-size: 14px; }

  .seo-article ul,
  .center > article ul { padding: 0 20px 12px 40px; font-size: 14px; }

  .seo-article > *,
  .center > article > * { padding: 0 20px; }

  .info-grid { padding: 16px 20px 24px; gap: 14px; }
  .info-grid article { padding: 16px; }
  .info-grid h3 { font-size: 16px; margin-bottom: 8px; }
  .info-grid p { font-size: 13px; }

  /* Section Titles Mobile */
  .center > section h2[style*="margin-bottom"],
  .center > section > h2 { font-size: 20px; }

  /* Footer Mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer > .container { padding: 26px 20px; border-radius: 18px; }
  .footer-grid > div:first-child { padding: 18px; }
  .site-footer h3 { font-size: 18px; margin-bottom: 14px; }
  .site-footer h4 { font-size: 13px; margin-bottom: 12px; }
  .footer-text { font-size: 13px; }
  .site-footer a { font-size: 13px; margin-bottom: 8px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
    margin-top: 18px;
    font-size: 12px;
  }

  .footer-bottom > div:last-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .text-links-bar { flex-direction: column; align-items: stretch; padding: 16px; }
  .text-links-label { width: 100%; font-size: 12px; }
  .text-links-row { width: 100%; flex-direction: column; align-items: stretch; gap: 14px; }
  .text-link a { font-size: 12px; padding: 6px 10px; }
  .text-links-toggle { width: 100%; justify-content: center; font-size: 13px; padding: 12px 16px; }

  /* Left Sidebar Mobile */
  .left-sidebar { padding: 16px; }
  .side-title { font-size: 11px; }
  .country-item { padding: 10px 12px; gap: 5px; }
  .country-item .country-name,
  .country-item > span:first-child,
  .country-item > a { font-size: 13px; }
  .country-item .match-count,
  .country-item > span:last-child,
  .country-item > small { font-size: 10px; padding: 3px 8px; }
  .quick-links a { font-size: 14px; padding: 8px 4px; }

  /* Right Sidebar Mobile */
  .sponsored-card { padding: 18px; }
  .sponsored-title { font-size: 15px; }
  .sponsored-text { font-size: 13px; }
  .badge { font-size: 10px; padding: 5px 10px; }
  .right-sidebar > div { padding: 16px; margin-bottom: 16px; }

  /* Toolbar Mobile */
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .toolbar-left {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .toolbar-left::-webkit-scrollbar { display: none; }
  .toolbar-right { width: 100%; min-width: unset; }
  .search, .search-wrapper { width: 100%; max-width: 100%; }
  .pill { flex: 0 0 auto; padding: 8px 12px; font-size: 12px; }
  
  /* Tip Cards Mobile */
  .tip-card,
  .expert-tip-card,
  .game-card { padding: 16px 18px; }
  
  .match-name { font-size: 15px; }
  .tip-meta, .match-meta { flex-wrap: wrap; gap: 12px; }
  
  /* Acca Card Mobile */
  .acca-card h3 { font-size: 16px; padding: 20px 20px 16px; }
  .acca-card .acca-matches,
  .acca-card > ul,
  .acca-card > div:not(:first-child):not(:last-child) { padding: 16px 20px; }
  .acca-card .match-item,
  .acca-card li { padding: 14px 16px; margin-bottom: 10px; border-radius: 10px; }
  .acca-card > div:last-child > div:first-child,
  .acca-card > div:last-child > div:last-child { padding: 16px 14px; }
  .acca-card > div:last-child span:last-child,
  .acca-card > div:last-child strong,
  .acca-card > div:last-child > div > *:last-child { font-size: 20px; }

  /* Banker Card Mobile */
  .match-row { padding: 20px 0; }
  .match-meta { flex-wrap: wrap; gap: 15px; }
  .match-teams { font-size: 16px; }

  .related-links-section { padding: 20px 16px; margin-top: 24px; border-radius: 14px; }
  .related-links-section::before { height: 2px; }
  .related-links-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .related-links-icon { width: 52px; height: 52px; }
  .related-links-title { font-size: 17px; }
  .related-links-subtitle { font-size: 13px; }
  .links-category { margin-bottom: 18px; }
  .category-label { font-size: 10px; gap: 8px; margin-bottom: 10px; }
  .category-dot { width: 6px; height: 6px; }
  .links-grid { gap: 6px; }
  .link-chip { padding: 8px 12px; font-size: 11px; border-radius: 6px; }
  .links-footer { margin-top: 20px; padding-top: 18px; }
  .view-all-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 13px;
    border-radius: 10px;
  }
}

/* =========================================================
   RESPONSIVE - SMALL MOBILE (max-width: 420px)
========================================================= */
@media (max-width: 420px) {
  .hero h1 { font-size: 20px; }
  .hero-subtitle { font-size: 13px; }
  .hero:not(:has(.hero-main)) > p.muted { font-size: 13px; }

  /* Filter Panel - Extra Small */
  .filter-panel { padding: 8px 10px; }
  
  .date-controls {
    grid-template-columns: 28px 1fr 28px !important;
    gap: 4px !important;
  }

  .filter-panel #prevDay,
  .filter-panel #nextDay,
  .date-controls > button:first-child,
  .date-controls > button:last-child {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 12px !important;
  }

  .filter-panel #datePicker,
  .date-controls input[type="date"] {
    height: 28px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .filter-panel .date-favourite-btn,
  .filter-panel button[class*="favourite"],
  .favourite-btn {
    height: 28px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }

  /* Tab Buttons - Extra Small */
  .filter-panel .mode-tabs button,
  .filter-panel .mode-tabs a,
  .filter-panel .filter-tabs button,
  .filter-panel .filter-tabs a,
  .filter-panel .mode-tab,
  .filter-panel .filter-tab,
  .filter-panel button[class*="tab"],
  .filter-panel a[class*="tab"],
  .filters-row button:not(#prevDay):not(#nextDay):not(.date-favourite-btn):not(.text-links-toggle):not([class*="favourite"]) {
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    gap: 3px !important;
    border-radius: 13px !important;
  }

  .filter-panel .mode-tabs button svg,
  .filter-panel .mode-tabs button .icon,
  .filter-panel button[class*="tab"] svg,
  .filter-panel button[class*="tab"] .icon {
    width: 10px !important;
    height: 10px !important;
  }

  /* Date Pills - Extra Small */
  .filter-panel .date-pills button,
  .filter-panel .date-pills a,
  .filter-panel #datePills button,
  .filter-panel #datePills a,
  .date-pills button,
  .date-pills a,
  .date-pill {
    min-width: 50px !important;
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    border-radius: 13px !important;
  }

  /* TABLE - SMALL MOBILE */
  .table-head {
    grid-template-columns: 34px minmax(0, 2.4fr) 32px minmax(0, 1.1fr) 34px;
    padding: 8px 10px;
    font-size: 8px;
    column-gap: 4px;
  }

  .table-row {
    grid-template-columns: 34px minmax(0, 2.4fr) 32px minmax(0, 1.1fr) 34px;
    padding: 10px 10px;
    column-gap: 4px;
  }

  .time { font-size: 9px; }
  .teams { gap: 2px; }
  .team-home { font-size: 11px; font-weight: 700; line-height: 1.15; }
  .team-away { font-size: 10px; font-weight: 700; line-height: 1.15; }
  .prediction-percent-only { min-width: 28px; padding: 3px 4px; font-size: 9px; border-radius: 5px; }
  .pick { min-width: 28px; height: 28px; font-size: 10px; border-radius: 5px; }
  .pick-container { gap: 4px; }
  .odd-label { font-size: 6px; }
  .odd-value { font-size: 9px; }
  .score { font-size: 8px; }

  .match-card-header { padding: 8px 10px; }
  .league-name { font-size: 10px; letter-spacing: 0.02em; }
  .favourite-star { width: 28px; height: 28px; font-size: 12px; }

  /* Live indicator */
  .time .live-dot,
  .time::before,
  .live-indicator { width: 4px; height: 4px; }

  .tg-cta__sub { max-width: 200px; }
  .metric-value { font-size: 24px; }
  .country-list { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

  .related-links-section { padding: 18px 14px; }
  .related-links-title { font-size: 16px; }
  .link-chip { padding: 7px 10px; font-size: 10px; }
}

/* =========================================================
   RESPONSIVE - EXTRA SMALL MOBILE (max-width: 360px)
========================================================= */
@media (max-width: 360px) {
  /* TABLE - EXTRA SMALL MOBILE */
  .table-head {
    grid-template-columns: 30px minmax(0, 2.5fr) 28px minmax(0, 1fr) 30px;
    padding: 8px 8px;
    font-size: 7px;
    column-gap: 3px;
  }

  .table-row {
    grid-template-columns: 30px minmax(0, 2.5fr) 28px minmax(0, 1fr) 30px;
    padding: 10px 8px;
    column-gap: 3px;
  }

  .time { font-size: 8px; }
  .team-home { font-size: 10px; font-weight: 700; }
  .team-away { font-size: 9px; font-weight: 700; }
  .prediction-percent-only { min-width: 24px; padding: 2px 4px; font-size: 8px; }
  .pick { min-width: 26px; height: 26px; font-size: 9px; }
  .odd-label { font-size: 5px; }
  .odd-value { font-size: 8px; }
  .score { font-size: 7px; }
}