/* ═══════════════════════════════════════════
   predictions/today.css
   Drop into: assets/css/predictions-today.css
   Linked from predictions/today.php only
═══════════════════════════════════════════ */


/* ─── Page hero banner ──────────────────── */
.page-hero {
  background: var(--navy);
  padding: 28px 0 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,59,213,0.24) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}
.page-hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 6px;
}
.page-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.page-hero-title em {
  color: var(--purple-lt);
  font-style: normal;
}
.page-hero-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}
.page-hero-kpis {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.kpi-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 12px;
  border-radius: 30px;
}
.kpi-num {
  font-family: var(--ff-mono);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
.kpi-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  line-height: 1.2;
}
.kpi-chip-green  { border-color: rgba(16,185,129,0.3); }
.kpi-chip-green  .kpi-num { color: #6EE7B7; }
.kpi-chip-purple { border-color: rgba(139,92,246,0.3); }
.kpi-chip-purple .kpi-num { color: var(--purple-lt); }


/* ─── Date tabs (inside hero) ───────────── */
.page-date-tabs {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
}
.page-date-tabs-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.page-date-tabs-inner::-webkit-scrollbar { display: none; }
.pdt {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  padding: 11px 20px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  background: none;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.pdt:hover  { color: rgba(255,255,255,0.75); }
.pdt.active { color: var(--purple-lt); border-bottom-color: var(--purple-lt); }


/* ─── Breadcrumb ────────────────────────── */
.page-breadcrumb {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.breadcrumb-inner {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb-inner a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-inner a:hover { color: var(--purple); }
.breadcrumb-inner .bc-current {
  color: var(--text-2);
  font-weight: 500;
}


/* ─── Predictions layout ─────────────────  */
.preds-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  padding: 24px 0 48px;
  align-items: start;
}


/* ─── Quick filter pills ─────────────────  */
.quick-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.qf {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-2);
  cursor: pointer;
  color: var(--text-2);
  background: var(--card);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s;
  white-space: nowrap;
}
.qf:hover  { border-color: var(--purple); color: var(--purple); }
.qf.active { background: var(--purple); color: white; border-color: var(--purple); }
.qf-gold   { border-color: #FCD34D; color: #92400E; background: #FEF3C7; }
.qf-gold:hover,
.qf-gold.active { background: #F59E0B; color: white; border-color: #F59E0B; }
.qf-vip {
  background: linear-gradient(90deg, rgba(108,59,213,0.1), rgba(139,92,246,0.1));
  border-color: rgba(108,59,213,0.35);
  color: var(--purple);
}
.qf-vip:hover,
.qf-vip.active { background: var(--purple); color: white; border-color: var(--purple); }

[data-theme="dark"] .qf-gold {
  color: #FCD34D;
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
}


/* ─── Toolbar ────────────────────────────  */
.preds-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tb-count { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.tb-count strong { color: var(--text); }
.tb-spacer { flex: 1; }

.tb-search-wrap {
  position: relative;
  flex-shrink: 0;
}
.tb-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.tb-search {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 7px 12px 7px 30px;
  width: 190px;
  outline: none;
  transition: border-color 0.2s;
}
.tb-search::placeholder { color: var(--text-3); }
.tb-search:focus        { border-color: var(--purple); }

.tb-select {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}
.tb-select:focus { border-color: var(--purple); }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 30px; height: 30px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-3);
  transition: all 0.2s;
}
.view-btn.active,
.view-btn:hover { background: var(--purple); color: white; border-color: var(--purple); }


/* ─── League group ───────────────────────  */
.league-group {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.league-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
[data-theme="dark"] .league-group-head { background: rgba(255,255,255,0.03); }
.league-group-head:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.league-flag  { font-size: 16px; line-height: 1; flex-shrink: 0; }
.league-name  {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--purple);
  flex: 1;
  min-width: 0;
}
.league-count {
  font-family: var(--ff-mono);
  font-size: 10px;
  background: var(--purple-dim);
  color: var(--purple);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
  flex-shrink: 0;
}
[data-theme="dark"] .league-count { background: rgba(108,59,213,0.25); }
.league-toggle-icon {
  font-size: 14px;
  color: var(--text-3);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.league-group.collapsed .league-toggle-icon { transform: rotate(-90deg); }
.league-group.collapsed .league-table-wrap  { display: none; }


/* ─── Predictions table wrapper ──────────
   KEY FIX: This outer wrapper controls
   the horizontal scroll on mobile so the
   table never bleeds past the viewport.
─────────────────────────────────────────  */
.preds-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
  /* Prevents the wrapper itself from adding extra width */
  display: block;
}
.preds-table-wrap::-webkit-scrollbar        { height: 4px; }
.preds-table-wrap::-webkit-scrollbar-track  { background: transparent; }
.preds-table-wrap::-webkit-scrollbar-thumb  { background: var(--border-2); border-radius: 2px; }

/* The table itself has a sensible min-width.
   On mobile it scrolls INSIDE .preds-table-wrap,
   never forcing the page to widen. */
.preds-table {
  width: 100%;
  min-width: 700px;       /* table scrolls horizontally below this */
  border-collapse: collapse;
  table-layout: fixed;    /* prevents columns from blowing up */
}

/* Column definitions */
.preds-table .col-time   { width: 58px; }
.preds-table .col-status { width: 76px; }
.preds-table .col-home   { width: 13%; }
.preds-table .col-score  { width: 66px; }
.preds-table .col-away   { width: 13%; }
.preds-table .col-tip    { width: 19%; }
.preds-table .col-mkt    { width: 72px; }
.preds-table .col-odds   { width: 52px; }
.preds-table .col-conf   { width: 90px; }
.preds-table .col-act    { width: 26px; }

/* Header row */
.preds-table thead th {
  background: var(--surface-2);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .preds-table thead th { background: rgba(255,255,255,0.025); }
.preds-table thead th.align-center { text-align: center; }

/* Body rows */
.preds-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.preds-table tbody tr:last-child { border-bottom: none; }
.preds-table tbody tr:hover      { background: var(--purple-dim); }
[data-theme="dark"] .preds-table tbody tr:hover { background: rgba(108,59,213,0.08); }

.preds-table tbody td {
  padding: 10px 10px;
  font-size: 12px;
  color: var(--text-2);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ─── Table cell types ───────────────────  */

/* Time */
.td-time {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-3);
}
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse-dot 1.4s ease-in-out infinite;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(0.75); }
}
.td-live-min {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--red);
  font-weight: 500;
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.sp-upcoming { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }
[data-theme="dark"] .sp-upcoming { background: rgba(255,255,255,0.05); }
.sp-live     { background: var(--red);      color: white; }
.sp-ft       { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }
.sp-won      { background: var(--green-bg);  color: var(--green-text); }
.sp-lost     { background: var(--red-bg);    color: var(--red-text); }
.sp-pp       { background: var(--amber-bg);  color: var(--amber-text); }

/* Team cells */
.td-home { text-align: right; }
.td-away { text-align: left; }
.team-cell {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.team-cell-fave { color: var(--purple); }

/* Score / vs */
.td-score { text-align: center; }
.score-vs {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--text-3);
}
.score-live {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.score-ft {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  white-space: nowrap;
}

/* Tip */
.tip-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--purple);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

/* Market tags */
.mkt-tag {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--border);
  display: inline-block;
}
.mkt-1x2  { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.mkt-ou25 { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.mkt-btts { background: #FFF7ED; color: #C2410C; border-color: #FED7AA; }
.mkt-dc   { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.mkt-dnb  { background: #FFF1F2; color: #BE123C; border-color: #FECDD3; }
.mkt-htft { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.mkt-cs   { background: #FEF9C3; color: #854D0E; border-color: #FDE047; }
.mkt-combo { background: var(--purple-dim); color: var(--purple); border-color: rgba(108,59,213,0.25); }

[data-theme="dark"] .mkt-1x2  { background:rgba(29,78,216,0.15);  color:#93C5FD;  border-color:rgba(29,78,216,0.3); }
[data-theme="dark"] .mkt-ou25 { background:rgba(21,128,61,0.15);  color:#86EFAC;  border-color:rgba(21,128,61,0.3); }
[data-theme="dark"] .mkt-btts { background:rgba(194,65,12,0.15);  color:#FDBA74;  border-color:rgba(194,65,12,0.3); }
[data-theme="dark"] .mkt-dc   { background:rgba(109,40,217,0.15); color:#C4B5FD;  border-color:rgba(109,40,217,0.3); }

/* Odds */
.td-odds {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}

/* Confidence pips (table size) */
.conf-pips-sm { display: flex; gap: 2px; align-items: center; }
.conf-pip-sm  {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-2);
  flex-shrink: 0;
}
.conf-pip-sm.on { background: var(--purple); }
.conf-txt       { font-size: 9px; color: var(--text-3); margin-left: 4px; white-space: nowrap; }
.conf-txt.hi    { color: var(--purple); font-weight: 500; }
.conf-txt.vhi   { color: var(--green-text); font-weight: 500; }
.conf-txt.mid   { color: var(--text-3); }
[data-theme="dark"] .conf-txt.vhi { color: var(--green); }

/* Row action button */
.row-detail-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.preds-table tbody tr:hover .row-detail-btn { opacity: 1; }
.row-detail-btn:hover { background: var(--purple-dim); color: var(--purple); }


/* ─── Expandable detail row ──────────────  */
.detail-row { display: none; }
.detail-row.open { display: table-row; }
.detail-cell {
  padding: 0 10px 12px !important;
  background: var(--surface-2);
}
[data-theme="dark"] .detail-cell { background: rgba(255,255,255,0.025); }
.detail-inner {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 10px;
  font-size: 11px;
}
.detail-block { flex: 1; min-width: 130px; }
.detail-block-title {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-bottom: 5px;
}
.detail-text { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.detail-analysis { font-size: 12px; color: var(--text-2); line-height: 1.7; flex: 3; min-width: 200px; }

/* Form pips (detail row) */
.form-inline { display: flex; gap: 2px; align-items: center; }
.form-pip-xs {
  width: 13px; height: 13px;
  border-radius: 50%;
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-weight: 500;
  flex-shrink: 0;
}
.form-pip-xs.w { background: var(--green-bg); color: var(--green-text); }
.form-pip-xs.d { background: var(--amber-bg); color: var(--amber-text); }
.form-pip-xs.l { background: var(--red-bg);   color: var(--red-text); }

/* H2H mini stats */
.h2h-cell      { display: flex; align-items: center; gap: 3px; font-size: 9px; font-family: var(--ff-mono); }
.h2h-w         { color: var(--green-text); font-weight: 500; }
.h2h-d         { color: var(--amber-text); }
.h2h-l         { color: var(--red-text); }
.h2h-sep       { color: var(--text-3); }
[data-theme="dark"] .h2h-w { color: var(--green); }


/* ─── Pagination ─────────────────────────  */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pg-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.pg-btn:hover,
.pg-btn.active   { background: var(--purple); color: white; border-color: var(--purple); }
.pg-btn.disabled { opacity: 0.35; pointer-events: none; }
.pg-btn-wide     { width: auto; padding: 0 12px; font-size: 11px; }
.pg-info         { font-size: 11px; color: var(--text-3); padding: 0 8px; }


/* ─── Predictions sidebar ────────────────  */
.pred-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Accumulator widget */
.acca-widget {
  background: linear-gradient(145deg, #1a1450 0%, #3B1FA8 50%, #6C3BD5 100%);
  border-radius: var(--radius-md);
  padding: 18px;
  color: white;
}
.acca-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.acca-widget-title {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
}
.acca-leg-count {
  font-size: 10px;
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 10px;
}
.acca-odds-big   { font-family: var(--ff-mono); font-size: 32px; color: white; line-height: 1; margin-bottom: 4px; }
.acca-odds-sub   { font-size: 10px; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.acca-leg {
  display: flex;
  justify-content: space-between;
  background: rgba(255,255,255,0.07);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 5px;
  font-size: 11px;
  align-items: center;
  gap: 6px;
}
.acca-leg-team { color: rgba(255,255,255,0.85); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acca-leg-tip  { color: var(--purple-mid); font-size: 10px; flex-shrink: 0; }
.acca-leg-odd  { font-family: var(--ff-mono); font-size: 10px; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.acca-view-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  background: rgba(255,255,255,0.12);
  color: white;
  padding: 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.acca-view-link:hover { background: rgba(255,255,255,0.2); }

/* Market breakdown widget */
.mkt-breakdown {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.mkt-breakdown-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mkt-bar-row     { margin-bottom: 9px; }
.mkt-bar-label   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.mkt-bar-name    { font-size: 11px; color: var(--text-2); }
.mkt-bar-pct     { font-family: var(--ff-mono); font-size: 10px; color: var(--purple); font-weight: 500; }
.mkt-bar-track   { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.mkt-bar-fill    { height: 100%; background: var(--purple); border-radius: 2px; transition: width 0.6s ease; }
.mkt-bar-fill.green { background: var(--green); }
.mkt-bar-fill.amber { background: var(--amber); }

/* Hot matches widget */
.hot-matches {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.hot-matches-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.hot-match-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.hot-match-item:last-child { border-bottom: none; padding-bottom: 0; }
.hot-match-rank {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--purple);
  background: var(--purple-dim);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 500;
}
.hot-match-body   { flex: 1; min-width: 0; }
.hot-match-teams  { font-size: 11px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.hot-match-tip    { font-size: 10px; color: var(--purple); }
.hot-match-heat   { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.hot-match-odds   { font-family: var(--ff-mono); font-size: 11px; font-weight: 500; color: var(--text); }
.heat-bar         { display: flex; gap: 1px; }
.heat-seg         { width: 5px; height: 3px; border-radius: 1px; background: var(--border-2); }
.heat-seg.on      { background: var(--red); }

/* Responsible gambling */
.rg-block {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
[data-theme="dark"] .rg-block { background: rgba(245,158,11,0.07); border-color: rgba(245,158,11,0.2); }
.rg-block p       { font-size: 11px; color: var(--amber-text); line-height: 1.6; }
[data-theme="dark"] .rg-block p { color: #FCD34D; }
.rg-block strong  { display: block; margin-bottom: 3px; font-size: 11px; }
.rg-link          { color: var(--amber-text); font-weight: 500; text-decoration: underline; }
[data-theme="dark"] .rg-link { color: #FCD34D; }


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* Tablet: drop sidebar */
@media (max-width: 960px) {
  .preds-layout { grid-template-columns: 1fr; }
  .pred-sidebar { display: none; }
}

/* Wide mobile */
@media (max-width: 700px) {
  .page-hero-inner { flex-direction: column; align-items: flex-start; }
  .page-hero-kpis  { width: 100%; }
  .preds-toolbar   { gap: 6px; }
  .tb-search       { width: 140px; }
  .quick-filters   { gap: 4px; }
  .tb-spacer       { display: none; }
}

/* Narrow mobile: toolbar stacks */
@media (max-width: 520px) {
  .preds-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .tb-search  { width: 100%; }
  .tb-select  { width: 100%; }
  .view-toggle { align-self: flex-end; }
  .tb-count   { order: -1; }

  /* Tighter quick filters */
  .qf { font-size: 10px; padding: 4px 10px; }

  /* Hero KPIs wrap tighter */
  .kpi-chip { padding: 5px 9px; }
  .kpi-num  { font-size: 14px; }
}

/* Narrow mobile: hero */
@media (max-width: 480px) {
  .page-hero-title { font-size: 22px; }
}


/* ─── Additional helpers (referenced in PHP) ── */

/* Confidence cell wrapper */
.conf-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Table header right-align shorthand */
.preds-table thead th.align-right { text-align: right; }

/* Acca date sub-line */
.acca-date {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

/* Market bar colour variants */
.mkt-bar-fill.mkt-bar-violet { background: #A78BFA; }
.mkt-bar-fill.mkt-bar-pink   { background: #F472B6; }

/* "Other competitions" stub block */
.league-other-stub {
  padding: 16px 14px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.7;
}
.league-other-link {
  color: var(--purple);
  font-weight: 500;
  text-decoration: none;
}
.league-other-link:hover { text-decoration: underline; }

/*
  MOBILE OVERFLOW — belt-and-braces fix.
  Prevents ANY ancestor from adding a horizontal scrollbar
  while still letting .preds-table-wrap scroll internally.
*/
.league-group,
.league-table-wrap,
.preds-primary {
  /* Contain table overflow to the wrapper, not the page */
  min-width: 0;
  max-width: 100%;
}