/*
Theme Name: SocaPredict
Theme URI: https://socapredict.com
Author: SocaPredict
Author URI: https://socapredict.com
Description: Clean football predictions theme inspired by modern tipster sites. Soft green palette, league-grouped matches, mobile-first cards.
Version: 2.9.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: socapredict
Tags: sports, football, soccer, predictions, tips, betting, custom-post-type, responsive
*/

:root {
  /* Red theme */
  --green: #dc2626;
  --green-dark: #b91c1c;
  --green-deep: #7f1d1d;
  --green-soft: #fef2f2;
  --green-soft-2: #fecaca;
  --green-muted: #fca5a5;
  --green-header: #fecaca;
  --green-border: #fca5a5;
  --green-bar: #dc2626;
  --gold: #c9a227;
  --bg: #fafafa;
  --bg-white: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f0f0f0;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --warning: #d97706;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07);
  --font: 'Nunito Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}
img, video, iframe, svg { max-width: 100%; height: auto; display: flex !important; }
table { width: 100%; border-collapse: collapse; }
button, input, select, textarea { font: inherit; max-width: 100%; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
h2 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
h3 { font-size: 1.05rem; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding-bottom: 2rem; }

/* Header */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.site-header .container { position: relative; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-logo:hover { color: var(--text); }
.site-logo .ball {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.site-logo .accent { color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 0.15rem; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--green);
  background: var(--green-soft);
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle, .menu-toggle {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.menu-toggle { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.82rem; }

/* Banner */
.intro-banner {
  background: linear-gradient(135deg, var(--green-soft) 0%, #f0faf1 50%, var(--bg-white) 100%);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.5rem;
  margin: 1.25rem 0 1.35rem;
  text-align: center;
}
.intro-banner h1 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}
.intro-banner p { color: var(--text-muted); font-size: 0.92rem; max-width: 640px; margin: 0 auto; }

/* Categories */
.prediction-categories { margin-bottom: 1.25rem; }
.section-label {
  background: var(--green-soft-2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--green-border);
  border-bottom: none;
}
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--green-border);
  border-radius: 0 0 var(--radius) var(--radius);
}
a.cat-pill, a.date-pill { text-decoration: none; color: inherit; }
.cat-pill, .market-filter, .league-pill, a.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.cat-pill:hover, .market-filter:hover, .league-pill:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}
a.cat-pill.active, .cat-pill.active, .market-filter.active, .league-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Date nav */
.date-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem;
  margin-bottom: 1.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.date-nav::-webkit-scrollbar { display: none; }
a.date-pill, .date-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  line-height: 1.25;
  flex-shrink: 0;
}
.date-pill span { display: flex !important; }
.date-pill .day-name { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; }
.date-pill .day-date { font-size: 0.8rem; font-weight: 700; color: var(--text); }
a.date-pill.active, .date-pill.active { background: var(--green); color: #fff; }
a.date-pill.active .day-date, .date-pill.active .day-date { color: #fff; }
.date-pill:hover:not(.active) { background: var(--bg-alt); }

/* Layout */
.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.35rem;
  align-items: start;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-title {
  background: var(--green-soft-2);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--green-border);
  color: var(--text);
}
.widget-body { padding: 0.75rem 1rem 1rem; }
.upcoming-item {
  display: flex !important;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
  color: inherit;
}
.upcoming-item:last-child { border-bottom: none; }
.upcoming-item:hover { color: inherit; }
.upcoming-teams { font-weight: 700; font-size: 0.88rem; margin-bottom: 0.2rem; }
.upcoming-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.upcoming-tip { font-weight: 700; color: var(--green); }
.league-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}
.league-list a:last-child { border-bottom: none; }
.league-list a:hover { color: var(--green); }
.league-list .flag {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Predictions */
.predictions-panel { margin-bottom: 1.5rem; }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.panel-header h2 {
  background: var(--green-soft-2);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--green-border);
  font-size: 1rem;
  width: 100%;
}

.league-group {
  margin-bottom: 0.85rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.league-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-soft-2);
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--green-border);
  cursor: pointer;
  user-select: none;
}
.league-group-header .league-name { display: flex; align-items: center; gap: 0.45rem; }
.league-group-header .toggle-icon { color: var(--text-muted); font-size: 1.1rem; line-height: 1; }

/* Match card — BetsLoaded style */
.match-card {
  display: flex !important;
  padding: 0.75rem 1rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  color: inherit;
  transition: background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg-white);
}
.match-card:last-child { border-bottom: none; }
.match-card:hover, .match-card:active { background: #fffafa; color: inherit; }

.match-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}
.match-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 52px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.match-teams {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.match-team {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 0;
}
.match-team.home { justify-content: flex-end; text-align: right; flex: 1; }
.match-team.away { justify-content: flex-start; flex: 1; }
.match-team .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
}
.team-crest {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 26px;
  border-radius: 6px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}
.form-dots {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}
.form-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  font-size: 0;
}
.form-dots .w { background: #22c55e; }
.form-dots .d { background: #9ca3af; }
.form-dots .l { background: #ef4444; }

.match-card-bottom {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
}
.match-odds-wrap {
  display: flex;
  align-items: center;
  background: #f5f0f0;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.match-odds-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem 0.4rem 0.65rem;
  text-transform: capitalize;
}
.match-odds-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  margin: 0.25rem 0.4rem 0.25rem 0;
  min-width: 42px;
  text-align: center;
}
.match-pred-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f5f0f0;
  padding: 0.4rem 0.55rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.match-pred-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  min-height: 38px;
  text-align: center;
  border-radius: 0 8px 8px 0;
}
.match-conf {
  display: none;
}
.match-conf.mid { background: #fef3c7; color: var(--warning); }
.match-conf.low { background: var(--danger-bg); color: var(--danger); }

/* Table */
.pred-table-wrap { overflow-x: auto; }
.pred-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pred-table th {
  text-align: left;
  padding: 0.75rem 0.85rem;
  background: var(--green-soft-2);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--green-border);
}
.pred-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.pred-table tr:hover td { background: var(--bg-alt); }
.pred-table .td-time { white-space: nowrap; color: var(--text-muted); font-size: 0.85rem; }
.pred-table .td-odds { font-weight: 700; color: var(--green); }
.conf-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--success-bg);
  color: var(--success);
}
.conf-badge.mid { background: #fef3c7; color: var(--warning); }
.conf-badge.low { background: var(--danger-bg); color: var(--danger); }
.match-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-weight: 600;
}
.match-row:hover { color: inherit; }
.team-side { display: flex; align-items: center; gap: 0.3rem; }
.team-side.away { flex-direction: row-reverse; }
.vs-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-soft);
  padding: 0 0.2rem;
}


/* ==========================================================================
   BetsLoaded-style league groups & match rows (desktop + mobile)
   ========================================================================== */
.bl-league {
  margin-bottom: 0.85rem;
}
.bl-league-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #fecaca 0%, #fca5a5 100%);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.45rem;
  box-shadow: var(--shadow);
}
.bl-league-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
}
.bl-league-toggle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

.bl-match {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem 0.65rem;
  margin-bottom: 0.45rem;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.bl-match:hover { color: inherit; box-shadow: var(--shadow-md); }
.bl-match:active { transform: scale(0.995); }

.bl-match-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}
.bl-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 4.2rem;
  flex-shrink: 0;
}
.bl-clock { font-size: 0.85rem; opacity: 0.7; }

.bl-teams-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}
.bl-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}
.bl-team.home { justify-content: flex-end; }
.bl-team.away { justify-content: flex-start; }
.bl-tname {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.bl-crest {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fafc, #eef2f7);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}
.bl-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 0.4rem;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: lowercase;
  flex-shrink: 0;
}

.bl-match-foot {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}
.bl-odds-box {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ece8e8;
  border-radius: 10px;
  padding: 0.35rem 0.35rem 0.35rem 0.55rem;
  flex-shrink: 0;
}
.bl-odds-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}
.bl-odds-val {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.28rem 0.55rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text);
  min-width: 2.4rem;
  text-align: center;
}
.bl-pred-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-bar);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  text-align: center;
  min-height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Section headers like BetsLoaded */
.panel-header h2,
.section-label,
.prediction-categories .section-label {
  background: linear-gradient(180deg, #fecaca 0%, #fca5a5 100%) !important;
  border: 1px solid var(--green-border) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  font-weight: 800 !important;
}
.cat-pill, a.cat-pill, .market-filter, .league-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
}
.cat-pill.active, a.cat-pill.active,
.cat-pill:hover, a.cat-pill:hover {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green-dark);
}
.date-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.35rem;
}
a.date-pill.active, .date-pill.active {
  background: var(--green-bar) !important;
  color: #fff !important;
  border-radius: 12px;
}
a.date-pill.active .day-date, .date-pill.active .day-date { color: #fff !important; }

.intro-banner {
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid var(--green-border);
  border-radius: 16px;
}
.intro-banner h1 { color: var(--text); }
.intro-banner h1 span, .intro-banner .accent { color: var(--green); }

.widget-title {
  background: linear-gradient(180deg, #fecaca 0%, #fca5a5 100%) !important;
  border-bottom: 1px solid var(--green-border) !important;
}

/* Hide legacy desktop-only / mobile-only card systems */
.league-groups-desktop { display: none !important; }
.pred-cards { display: none !important; }

/* ==========================================================================
   Mobile match cards — time-first friendly redesign
   ========================================================================== */
.pred-cards {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.1rem 0 0.6rem;
}
.mobile-list-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.1rem 0.1rem 0.3rem;
}
.mobile-list-header .mlh-hint {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* Card */
.m-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.m-card:active {
  transform: scale(0.985);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  color: inherit;
}
.m-card:hover { color: inherit; }

/* Head: TIME (big) + league */
.m-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.m-kick {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid var(--green-border);
  border-radius: 999px;
  padding: 0.28rem 0.65rem 0.28rem 0.45rem;
  flex-shrink: 0;
}
.m-kick-icon { font-size: 0.9rem; line-height: 1; }
.m-kick-time {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: 0.02em;
  line-height: 1;
}
.m-kick-day {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 0.3rem;
  border-left: 1px solid var(--green-border);
  margin-left: 0.1rem;
  line-height: 1.1;
}
.m-league {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Teams stacked — both always visible */
.m-teams {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.m-team {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.m-crest {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}
.m-crest-away {
  background: linear-gradient(145deg, #fef2f2, #fecaca);
  border-color: var(--green-border);
  color: var(--green-dark);
}
.m-team-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.m-vs { display: none; }

/* Foot: tip · odds · confidence */
.m-foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-light);
}
.m-tip {
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: var(--green);
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
  line-height: 1.2;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-odds {
  font-weight: 800;
  font-size: 0.85rem;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
  margin-left: auto;
}
.m-conf {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #86efac;
  white-space: nowrap;
  flex-shrink: 0;
}
.m-conf.mid {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}
.m-conf.low {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #fca5a5;
}

.conf-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.45rem;
  border-radius: 8px;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #86efac;
  white-space: nowrap;
}
.conf-badge.mid {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}
.conf-badge.low {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #fca5a5;
}

/* Single */
.page-header { margin: 1.25rem 0 1rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); }
.single-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.league-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid var(--green-border);
}
.single-match-title { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-bottom: 0.65rem; }
.single-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}
.match-scoreboard {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  margin-bottom: 1.35rem;
}
.match-scoreboard .teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}
.match-scoreboard .team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 100px;
}
.match-scoreboard .team-crest.lg {
  width: 56px; height: 56px;
  font-size: 1.3rem;
  background: var(--bg-white);
  border: 2px solid var(--green-border);
}
.match-scoreboard .team-name { font-weight: 800; font-size: 1rem; }
.team-label-sub { font-size: 0.75rem; color: var(--text-soft); font-weight: 500; }
.score-block { text-align: center; min-width: 80px; }
.score-block .score { font-size: 1.85rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.score-block .score.vs { color: var(--text-muted); font-size: 1.4rem; }
.score-block .score-label { font-size: 0.75rem; color: var(--text-soft); margin-top: 0.2rem; }
.tip-box {
  background: var(--bg-white);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.tip-box .label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.tip-box .value { font-size: 1.4rem; font-weight: 800; color: var(--green); margin-bottom: 0.5rem; }
.tip-box .meta {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.tip-box .meta strong { color: var(--text); }
.result-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.result-pill.won { background: var(--success-bg); color: var(--success); }
.result-pill.lost { background: #fee2e2; color: var(--danger); }
.result-pill.void { background: #fef3c7; color: var(--warning); }
.result-pill.pending { background: var(--bg-alt); color: var(--text-muted); }
.analysis-section { margin-top: 0.5rem; }
.analysis-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}
.single-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list li span { color: var(--text-muted); }
.info-list li strong { color: var(--text); text-align: right; }

/* Empty / pagination */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty-state .empty-icon { font-size: 2.75rem; margin-bottom: 0.65rem; }
.empty-state h3 { margin-bottom: 0.4rem; }
.empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.predictions-panel .pagination,
.predictions-panel .nav-links,
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.15rem;
  flex-wrap: wrap;
}
.predictions-panel .page-numbers,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.predictions-panel .page-numbers:hover,
.pagination a:hover { border-color: var(--green); color: var(--green); }
.predictions-panel .page-numbers.current,
.pagination .current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.72);
  padding: 2.5rem 0 1.25rem;
  margin-top: auto;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.footer-brand .site-logo { margin-bottom: 0.6rem; color: #fff; }
.footer-brand .site-logo .accent { color: var(--green-muted); }
.footer-brand p { font-size: 0.88rem; max-width: 260px; line-height: 1.5; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col a { color: rgba(255,255,255,.68); font-size: 0.88rem; }
.footer-col a:hover { color: var(--green-muted); }
.footer-bottom {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
}

/* Sport tabs */
.sport-tabs { display: flex; gap: 0.45rem; margin: 0 0 1.15rem; flex-wrap: wrap; }
.sport-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.sport-tab:hover { border-color: var(--green); color: var(--green); }
.sport-tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.top-leagues { margin-bottom: 1.15rem; }
.top-leagues h3 { font-size: 0.95rem; margin-bottom: 0.55rem; }
.league-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ==========================================================================
   Responsive — Desktop → Tablet → Mobile
   ========================================================================== */

/* Large tablets / small desktops */
@media (max-width: 1100px) {
  .content-grid { grid-template-columns: 240px 1fr; gap: 1rem; }
  .match-team .name { max-width: 120px; }
}

/* Tablets */
@media (max-width: 992px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .match-team .name { max-width: 110px; }
  .match-hero-teams { gap: 1rem; }
  .hero-team { min-width: 90px; }
}

/* Phones & small tablets (primary mobile breakpoint) */
@media (max-width: 768px) {
  .container { padding: 0 0.7rem; }
  .header-inner { height: 52px; }
  .site-logo { font-size: 1.08rem; }
  .site-logo .ball { width: 26px; height: 26px; font-size: 0.85rem; }

  /* Mobile menu */
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0.75rem 0.75rem;
    gap: 0.15rem;
    box-shadow: var(--shadow-md);
    z-index: 250;
  }
  .main-nav.open a {
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
    border-radius: 8px;
  }
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    cursor: pointer;
  }
  .header-actions .btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; min-height: 36px; }
  .header-actions .btn-outline { display: none; }

  /* Compact homepage banner */
  .intro-banner {
    padding: 0.7rem 0.9rem;
    margin: 0.6rem 0 0.65rem;
    border-radius: 10px;
  }
  .intro-banner h1 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
  }
  .intro-banner p { display: none; }

  .prediction-categories { margin-bottom: 0.6rem; }
  .prediction-categories .section-label {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
  }
  .cat-pills { gap: 0.35rem; }
  .cat-pill, .market-filter, .league-pill, a.cat-pill {
    padding: 0.35rem 0.7rem;
    font-size: 0.76rem;
    min-height: 34px;
  }

  .content-grid { gap: 0.7rem; margin-top: 0.4rem; }
  .panel-header { padding: 0.55rem 0.75rem; }
  .panel-header h2 { font-size: 0.92rem; width: auto; }

  /* Horizontal scroll date pills */
  .date-nav {
    gap: 0.3rem;
    padding: 0.4rem 0.25rem;
    margin-bottom: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .date-nav::-webkit-scrollbar { display: none; }
  a.date-pill, .date-pill {
    min-width: 58px;
    padding: 0.4rem 0.45rem;
    font-size: 0.66rem;
    flex-shrink: 0;
  }
  .date-pill .day-name { font-size: 0.62rem; }
  .date-pill .day-date { font-size: 0.74rem; }

  /* Horizontal scroll category pills */
  .sport-tabs, .league-pills, .cat-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sport-tabs::-webkit-scrollbar,
  .league-pills::-webkit-scrollbar,
  .cat-pills::-webkit-scrollbar { display: none; }
  .sport-tab, .league-pill, .cat-pill { flex-shrink: 0; }

  /* Unified BetsLoaded cards — same on mobile */
  .pred-table-wrap,
  .league-groups-desktop,
  .league-group,
  .pred-cards { display: none !important; }


  /* BetsLoaded cards on mobile */
  .bl-league-head {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
  }
  .bl-league-name { font-size: 0.88rem; }
  .bl-match {
    padding: 0.65rem 0.7rem 0.55rem;
    border-radius: 12px;
    margin-bottom: 0.4rem;
  }
  .bl-match-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
  }
  .bl-time {
    font-size: 0.8rem;
    min-width: 0;
  }
  .bl-teams-row {
    width: 100%;
    gap: 0.3rem;
  }
  .bl-tname {
    font-size: 0.82rem;
    max-width: 100px;
  }
  .bl-crest {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }
  .bl-vs {
    min-width: 28px;
    height: 24px;
    font-size: 0.65rem;
  }
  .bl-odds-lbl { font-size: 0.68rem; }
  .bl-odds-val { font-size: 0.8rem; padding: 0.22rem 0.4rem; }
  .bl-pred-bar {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
    min-height: 34px;
  }

  /* Sidebar stacks under content */
  .sidebar {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0.6rem;
    order: 2;
  }
  .sidebar .widget { margin: 0; }
  .sidebar .widget-title { font-size: 0.84rem; padding: 0.55rem 0.8rem; }
  .sidebar .widget-body { padding: 0.5rem 0.8rem 0.7rem; }
  .upcoming-item { padding: 0.5rem 0; }
  .upcoming-teams { font-size: 0.84rem; }
  .upcoming-meta { font-size: 0.74rem; flex-wrap: wrap; gap: 0.25rem; }
  .top-league-item { padding: 0.55rem 0.15rem !important; }
  .tl-name { font-size: 0.82rem; }
  .tl-desc { font-size: 0.72rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .predictions-panel { border-radius: 10px; }

  /* Single prediction / match page */
  .single-card { padding: 1rem; }
  .match-scoreboard .teams { flex-direction: column; gap: 0.65rem; }
  .score-block { order: -1; }
  .match-scoreboard .team-crest.lg { width: 44px; height: 44px; font-size: 1.05rem; }
  .tip-box .value { font-size: 1.1rem; }
  .single-nav { flex-direction: column; }
  .single-nav .btn { width: 100%; }

  .match-hero { padding: 1rem 0.85rem 1.15rem; margin: 0.85rem 0; border-radius: 12px; }
  .match-hero-teams { gap: 0.75rem; }
  .hero-team { min-width: 80px; }
  .team-crest.xl { width: 56px; height: 56px; font-size: 1.3rem; }
  .hero-team-name { font-size: 0.95rem; }
  .hero-score-num { font-size: 1.45rem; }
  .match-nav-arrows { left: 0.25rem; right: 0.25rem; }
  .match-arrow { width: 32px; height: 32px; font-size: 1.2rem; }
  .mpb-row { flex-direction: column; align-items: stretch; gap: 0.65rem; }
  .mpb-stats { justify-content: flex-start; }
  .match-analysis-block { padding: 1rem; font-size: 0.92rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.35rem; }

  /* Space for fixed bottom nav + safe area */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .site-main { padding-bottom: 1rem; }
}

/* Very small phones */
@media (max-width: 400px) {
  .container { padding: 0 0.5rem; }
  .intro-banner { padding: 0.55rem 0.7rem; margin: 0.45rem 0 0.5rem; }
  .intro-banner h1 { font-size: 0.88rem; }
  .m-card { padding: 0.65rem 0.7rem; gap: 0.45rem; }
  .m-kick { padding: 0.22rem 0.5rem 0.22rem 0.35rem; }
  .m-kick-time { font-size: 0.95rem; }
  .m-kick-day { font-size: 0.62rem; }
  .m-league { font-size: 0.66rem; max-width: 42%; }
  .m-crest { width: 32px; height: 32px; font-size: 0.75rem; }
  .m-team-name { font-size: 0.86rem; }
  .m-tip { font-size: 0.7rem; padding: 0.3rem 0.5rem; max-width: 46%; }
  .m-odds { font-size: 0.74rem; padding: 0.28rem 0.4rem; }
  .m-conf { font-size: 0.66rem; padding: 0.24rem 0.35rem; }
  .date-pill { min-width: 48px; padding: 0.3rem 0.3rem; }
  .team-crest.xl { width: 48px; height: 48px; font-size: 1.15rem; }
  .hero-team-name { font-size: 0.88rem; }
  .cat-pill, .market-filter, a.cat-pill {
    padding: 0.28rem 0.55rem;
    font-size: 0.7rem;
    min-height: 30px;
  }
  .mobile-list-header .mlh-hint { display: none; }
}

/* Touch devices — larger tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn, .cat-pill, .market-filter, .sport-tab, .date-pill, .league-pill,
  .menu-toggle, .mobile-bottom-nav a {
    min-height: 36px;
  }
  .pred-card-mobile, .match-card, .upcoming-item, .top-league-item {
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.08);
  }
}

/* Desktop: hide mobile-only UI */
@media screen and (min-width: 769px) {
  .pred-cards { display: none !important; }
  .pred-table-wrap { display: flex !important; }
  .mobile-bottom-nav { display: none !important; }
  .menu-toggle { display: none !important; }
  body { padding-bottom: 0 !important; }
}

/* Mobile bottom nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  z-index: 180;
  box-shadow: 0 -2px 12px rgba(0,0,0,.07);
  justify-content: space-around;
  align-items: stretch;
}
.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  padding: 0.35rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  min-width: 0;
  text-align: center;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--green);
  background: var(--green-soft);
}
.mobile-bottom-nav .nav-icon {
  font-size: 1.2rem;
  line-height: 1;
}
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
}


/* ==========================================================================
   Single Match Page (BetsLoaded-style)
   ========================================================================== */
.match-page { padding-bottom: 2rem; }

.match-hero {
  position: relative;
  background: linear-gradient(180deg, var(--green-soft) 0%, #fff 55%);
  border: 1px solid var(--green-border);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.5rem;
  margin: 1.25rem 0 1.25rem;
  text-align: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.back-link:hover { color: var(--green); }

.match-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--green-soft-2);
  border: 1px solid var(--green-border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.match-hero-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 110px;
}
.team-crest.xl {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
  background: #fff;
  border: 2px solid var(--green-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}
.hero-team-name {
  font-weight: 800;
  font-size: 1.05rem;
}
.hero-score {
  min-width: 80px;
  text-align: center;
}
.hero-score-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1.1;
}
.hero-score-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

.match-odds-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1.15rem;
}
.match-odds-chip .odds-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.04em;
}
.match-odds-chip .odds-vals {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}

.match-nav-arrows {
  position: absolute;
  top: 50%;
  left: 0.5rem;
  right: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.match-arrow {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}
.match-arrow:hover { color: var(--green); border-color: var(--green); }

.match-prediction-box {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: left;
  margin-top: 0.5rem;
}
.mpb-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.mpb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.mpb-teams { display: flex; flex-direction: column; gap: 0.45rem; }
.mpb-team {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.mpb-stats {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.mpb-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.mpb-pill strong { color: var(--text); }
.mpb-tip {
  background: #fff;
  border: 1.5px solid #f97316;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.mpb-tip strong { color: var(--green); }

.match-section-label {
  background: var(--green-soft-2);
  border: 1px solid var(--green-border);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
}

.match-analysis-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 0.95rem;
}
.match-analysis-block p { margin-bottom: 0.85rem; }
.match-analysis-block a { font-weight: 600; }

.match-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .match-hero { padding: 1rem 0.85rem 1.15rem; }
  .team-crest.xl { width: 56px; height: 56px; font-size: 1.25rem; }
  .hero-team-name { font-size: 0.92rem; }
  .match-hero-teams { gap: 0.75rem; }
  .match-nav-arrows { display: none; }
  .mpb-row { flex-direction: column; align-items: stretch; }
  .mpb-stats { justify-content: flex-start; }
  .match-info-grid { grid-template-columns: 1fr; }
  .match-analysis-block { padding: 1rem; font-size: 0.92rem; }
}


/* Ranked Top Leagues */
.top-leagues-ranked { padding: 0.5rem 0.85rem 0.85rem !important; }
.top-league-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.55rem !important;
  padding: 0.7rem 0.15rem !important;
  border-bottom: 1px solid var(--border-light) !important;
  color: var(--text) !important;
  font-weight: 500 !important;
}
.top-league-item:last-child { border-bottom: none !important; }
.top-league-item:hover { color: var(--green) !important; }
.top-league-item.active { background: var(--green-soft) !important; border-left: 3px solid var(--green); }
.tl-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.top-league-item .flag {
  width: 26px !important;
  height: 26px !important;
  font-size: 1rem !important;
  margin-top: 1px;
}
.tl-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.tl-name { font-weight: 800; font-size: 0.88rem; line-height: 1.25; }
.tl-country { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.tl-desc { font-size: 0.75rem; color: var(--text-soft); font-weight: 500; line-height: 1.35; margin-top: 0.15rem; }


/* Contact page */
.contact-page { max-width: 960px; margin: 0 auto; padding: 0.5rem 0 2rem; }
.contact-page .page-header { margin-bottom: 1.25rem; }
.contact-page .lead { color: var(--text-muted); font-size: 0.98rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.contact-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.sp-contact-form .form-row { margin-bottom: 0.95rem; }
.sp-contact-form label {
  display: flex !important;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.sp-contact-form .req { color: var(--danger); }
.sp-contact-form input[type="text"],
.sp-contact-form input[type="email"],
.sp-contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-white);
  color: var(--text);
  transition: border-color var(--transition);
}
.sp-contact-form input:focus,
.sp-contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.sp-contact-form textarea { resize: vertical; min-height: 140px; }
.contact-submit { width: 100%; min-height: 44px; margin-top: 0.25rem; }
.contact-alert {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.contact-alert.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #86efac;
}
.contact-alert.error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fca5a5;
}
.sp-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.1rem; }
}


/* Footer WhatsApp */
.footer-whatsapp { margin-top: 0.85rem; }
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #86efac !important;
  font-weight: 700;
  font-size: 0.9rem;
}
.whatsapp-link:hover { color: #fff !important; }
.wa-icon { font-size: 1.05rem; }


/* Lock body scroll when mobile menu is open */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Ensure sticky header works with safe areas (notched phones) */
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Prevent accidental horizontal scroll from wide content */
.site-main,
.container,
.content-grid,
.predictions-panel {
  max-width: 100%;
  overflow-x: clip;
}

/* Match cards on desktop stay readable when names are long */
@media (min-width: 769px) {
  .match-team .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ========== BetsLoaded-style single match page extras ========== */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  margin-top: 0.35rem;
}
.form-row.large { justify-content: flex-start; margin: 0.5rem 0; }
.form-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #e5e7eb;
  color: #374151;
}
.form-chip.win { background: #dcfce7; color: #166534; }
.form-chip.loss { background: #fee2e2; color: #991b1b; }
.form-chip.draw { background: #f3f4f6; color: #6b7280; }

.match-1x2 {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.85rem 0 0.5rem;
}
.ox-item {
  background: var(--bg-white);
  border: 1px solid var(--green-border);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  text-align: center;
  min-width: 64px;
}
.ox-lbl { display: block; font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }
.ox-val { display: block; font-size: 1rem; font-weight: 800; color: var(--text); }

.compare-teams {
  background: var(--bg-white);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.compare-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.compare-team-name { font-weight: 800; font-size: 0.95rem; }
.compare-col.right { text-align: right; }
.compare-stat {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 1px solid #f3f4f6;
  font-size: 0.88rem;
}
.cs-val { font-weight: 700; }
.cs-lbl { text-align: center; color: var(--text-muted); font-size: 0.78rem; }
.compare-stat .cs-val:last-child { text-align: right; }

.match-seo-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 1.25rem 0 0.75rem;
  color: var(--text);
}

.expert-tip-box {
  background: linear-gradient(135deg, var(--green-soft) 0%, #fff 100%);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
}
.etb-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}
.etb-tip {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 0.25rem;
}
.etb-odds { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; }

.match-section { margin: 1.5rem 0; }
.section-heading {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.h2h-summary {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.h2h-side, .h2h-mid { text-align: center; }
.h2h-num { display: block; font-size: 1.6rem; font-weight: 900; color: var(--green); }
.h2h-lbl { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.h2h-note { font-size: 0.9rem; color: var(--text-muted); }

.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-two-col h3 { font-size: 0.95rem; margin: 0 0 0.35rem; }
.form-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

.faq-section .faq-item {
  border: 1px solid var(--green-border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: var(--bg-white);
  padding: 0.65rem 0.9rem;
}
.faq-section summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section details[open] summary { margin-bottom: 0.4rem; color: var(--green-dark); }
.faq-section details p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.btn.muted {
  opacity: 0.75;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 640px) {
  .form-two-col { grid-template-columns: 1fr; }
  .match-seo-title { font-size: 1.05rem; }
  .etb-tip { font-size: 1.25rem; }
  .ox-item { min-width: 56px; padding: 0.35rem 0.6rem; }
}
