/*
 * Footstats — stylesheet principale
 * Raccoglie tutti gli stili del sito pubblico (precedentemente inline nei layout/view).
 */

/* ══ VARIABILI & BASE ═══════════════════════════════════════════════════════ */

:root {
  --pitch-accent:   #2AA587;
  --pitch-accent2:  #1e8a6e;
  --pitch-green:    #2AA587;
  --pitch-yellow:   #d97706;
  --pitch-red:      #dc2626;
  --pitch-bg:       #f8fafc;
  --pitch-surface:  #ffffff;
  --pitch-border:   #e2e8f0;
  --pitch-text:     #1e293b;
  --pitch-muted:    #64748b;
}
* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; }
body { background: var(--pitch-bg); color: var(--pitch-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── Navbar ── */
.navbar-pitch {
  background: var(--pitch-surface);
  border-bottom: 1px solid var(--pitch-border);
  padding: 0 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.navbar-pitch .container { max-width: 1200px; }
.navbar-brand-pitch {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pitch-accent) !important;
  letter-spacing: -0.5px;
  text-decoration: none;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand-pitch .brand-dot {
  width: 8px; height: 8px;
  background: var(--pitch-accent);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 2px;
}
.nav-pitch a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pitch-muted) !important;
  text-decoration: none;
  padding: 14px 14px;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-pitch a:hover, .nav-pitch a.active {
  color: var(--pitch-text) !important;
  border-bottom-color: var(--pitch-accent);
}
/* ── Mobile hamburger nav ── */
.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--pitch-text);
  padding: 4px 6px;
  cursor: pointer;
  line-height: 1;
  align-items: center;
}
.mobile-nav-inner {
  background: var(--pitch-surface);
  border-top: 1px solid var(--pitch-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--pitch-text);
  text-decoration: none;
  border-bottom: 1px solid var(--pitch-border);
  transition: background 0.1s, color 0.1s;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--pitch-accent);
  background: #f0fdf9;
  text-decoration: none;
}
.mobile-nav-lang {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--pitch-border);
  flex-wrap: wrap;
}
.mobile-nav-lang .lang-btn { padding: 8px 14px; font-size: 0.82rem; }

.lang-switcher { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pitch-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 3px 7px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.12s;
  letter-spacing: 0.03em;
}
.lang-btn:hover { background: #f1f5f9; border-color: var(--pitch-border); color: var(--pitch-text); }
.lang-btn.active { background: #e8f8f3; border-color: var(--pitch-accent); color: var(--pitch-accent); }

/* ── Probability bars ── */
.prob-bar-wrap { display: flex; height: 6px; border-radius: 4px; overflow: hidden; gap: 2px; }
.prob-bar-home { background: var(--pitch-accent); border-radius: 4px 0 0 4px; }
.prob-bar-draw { background: #94a3b8; }
.prob-bar-away { background: #f59e0b; border-radius: 0 4px 4px 0; }

/* ── Match card ── */
.match-card {
  background: var(--pitch-surface);
  border: 1px solid var(--pitch-border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s;
  text-decoration: none;
  display: block;
  color: var(--pitch-text);
}
.match-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); color: var(--pitch-text); }
.match-card-inner { padding: 14px 16px; }
.team-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.team-logo { width: 20px; height: 20px; object-fit: contain; }
.team-logo-ph {
  width: 20px; height: 20px; border-radius: 50%;
  background: #f1f5f9; border: 1px solid var(--pitch-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.55rem; color: var(--pitch-muted);
}
.team-name { font-size: 0.9rem; font-weight: 500; }
.prob-label { font-size: 0.72rem; color: var(--pitch-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.prob-value { font-size: 1.1rem; font-weight: 700; color: var(--pitch-accent); }
.time-badge {
  font-size: 0.75rem; font-weight: 600; color: var(--pitch-muted);
  background: #f1f5f9; border-radius: 5px; padding: 2px 8px;
}
.tip-badge {
  font-size: 0.72rem; font-weight: 700;
  background: var(--pitch-accent); color: #fff;
  border-radius: 5px; padding: 2px 8px;
}

/* ── Section headings ── */
.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pitch-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--pitch-border);
}

/* ── Stats ── */
.stat-block { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--pitch-text); line-height: 1; }
.stat-lbl { font-size: 0.72rem; color: var(--pitch-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── League badge ── */
.league-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pitch-border);
  text-decoration: none;
  color: var(--pitch-text);
  font-size: 0.88rem;
}
.league-row:last-child { border-bottom: none; }
.league-row:hover { color: var(--pitch-accent); }

/* ── Accuracy badge ── */
.acc-badge {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 8px;
}
.acc-high { background: #d1f5ec; color: #1a6b55; }
.acc-med  { background: #fef9c3; color: #a16207; }
.acc-low  { background: #f1f5f9; color: var(--pitch-muted); }

/* ── Result badge ── */
.result-w { background: var(--pitch-green); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 0.72rem; font-weight: 700; }
.result-d { background: var(--pitch-yellow); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 0.72rem; font-weight: 700; }
.result-l { background: var(--pitch-red); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 0.72rem; font-weight: 700; }

/* ── Tables ── */
.pitch-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.pitch-table thead th {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--pitch-muted);
  padding: 8px 10px; border-bottom: 2px solid var(--pitch-border);
  background: #f8fafc;
}
.pitch-table tbody td { padding: 9px 10px; border-bottom: 1px solid var(--pitch-border); vertical-align: middle; }
.pitch-table tbody tr:last-child td { border-bottom: none; }
.pitch-table tbody tr:hover td { background: #f8fafc; }

/* ── Standings desktop ── */
.standings-scroller { overflow-x: auto; }
@media (min-width: 992px) {
  .standings-scroller { overflow-x: visible; }
  .standings-table { min-width: 0 !important; }
  .standings-table .zone-th {
    white-space: normal !important;
    line-height: 1.25;
    min-width: 52px !important;
    max-width: 82px;
    vertical-align: bottom;
    padding-bottom: 6px;
  }
}

/* ── Footer ── */
.pitch-footer {
  background: var(--pitch-surface);
  border-top: 1px solid var(--pitch-border);
  padding: 48px 0 28px;
  margin-top: 60px;
  font-size: 0.78rem;
  color: var(--pitch-muted);
}
.pitch-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .pitch-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .pitch-footer-grid { grid-template-columns: 1fr; }
}
.pitch-footer-col-title {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pitch-text);
  margin-bottom: 12px;
}
.pitch-footer-link {
  display: block;
  color: var(--pitch-muted);
  text-decoration: none;
  margin-bottom: 7px;
  font-size: 0.82rem;
  transition: color 0.15s;
}
.pitch-footer-link:hover { color: var(--pitch-accent); }
.pitch-footer-bottom {
  border-top: 1px solid var(--pitch-border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
}

/* ── Utility ── */
.text-accent { color: var(--pitch-accent) !important; }
.text-pitch-muted { color: var(--pitch-muted) !important; }
.bg-surface { background: var(--pitch-surface); }
.border-pitch { border-color: var(--pitch-border) !important; }
.pitch-link-subtle { font-size:0.85rem; color:var(--pitch-accent); font-weight:600; text-decoration:none; }
.pitch-link-subtle:hover { text-decoration:underline; }

/* ══ HOMEPAGE COMPONENTS ════════════════════════════════════════════════════ */

/* ── Masthead ── */
.ph-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 3px solid var(--pitch-text);
  margin-bottom: 28px;
}
.ph-masthead-brand { display: flex; align-items: baseline; gap: 10px; }
.ph-masthead-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pitch-accent);
  letter-spacing: -0.5px;
  margin: 0;
}
.ph-masthead-sub {
  font-size: 0.78rem;
  color: var(--pitch-muted);
  font-weight: 500;
}
.ph-masthead-right { display: flex; align-items: center; gap: 10px; }
.ph-masthead-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pitch-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ph-masthead-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--pitch-text);
  color: #fff;
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
}

/* Masthead data line */
.ph-masthead-dataline {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 6px 0 0;
  font-size: 0.72rem; color: var(--pitch-muted);
}
.ph-masthead-dataline strong { color: var(--pitch-text); font-weight: 700; }
.ph-masthead-stat { display: flex; align-items: center; gap: 5px; }
.ph-masthead-stat::after { content: '·'; color: var(--pitch-border); margin-left: 16px; }
.ph-masthead-stat:last-child::after { display: none; }

/* ── Stats strip ── */
.ph-stats-strip {
  display: flex;
  align-items: center;
  background: #2AA587;
  border-radius: 14px;
  padding: 22px 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}
.ph-stat { display: flex; flex-direction: column; gap: 4px; }
.ph-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}
.ph-stat-accent { color: #fff; }
.ph-stat-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
}
.ph-stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
  margin: 0 4px;
  flex-shrink: 0;
}
.ph-stat-cta { margin-left: auto; }
.ph-stat-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 8px 16px;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.ph-stat-link:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ── Front page grid ── */
.ph-front-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  margin-bottom: 8px;
  align-items: stretch;
}
@media (max-width: 860px) { .ph-front-grid { grid-template-columns: 1fr; } }

/* ── Hero — big match scuro ── */
.ph-hero, .ph-hero:hover, .ph-hero:focus,
.ph-hero *, .ph-hero:hover * { text-decoration: none !important; }
.ph-hero {
  background: #0f172a;
  border-radius: 16px;
  padding: 24px 28px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.2s;
}
.ph-hero:hover { background: #162032; color: #fff; }

.ph-hero-eyebrow { display: flex; align-items: center; justify-content: space-between; }
.ph-hero-label {
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: #2AA587;
  border: 1px solid rgba(42,165,135,0.4); border-radius: 4px; padding: 3px 8px;
}
.ph-hero-league { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: #64748b; }
.ph-hero-time { background: #1e293b; border-radius: 6px; padding: 3px 9px; font-size: 0.82rem; font-weight: 700; color: #e2e8f0; }

.ph-hero-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e293b;
}
.ph-hero-side { display: flex; align-items: center; gap: 14px; flex: 1; }
.ph-hero-side--right { flex-direction: row-reverse; }
.ph-hero-crest { width: 68px; height: 68px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.ph-hero-crest-ph {
  width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
  background: #1e293b; border: 2px solid #334155;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #94a3b8; font-weight: 800;
}
.ph-hero-side-info { display: flex; flex-direction: column; gap: 5px; }
.ph-hero-side-info--right { align-items: flex-end; }
.ph-hero-team-row { display: flex; align-items: center; gap: 8px; }
.ph-hero-team-row--right { flex-direction: row-reverse; }
.ph-hero-team-name { font-size: 1.2rem; font-weight: 800; color: #f1f5f9; line-height: 1.15; }
.ph-hero-team-sub { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }
.ph-standing-badge {
  font-size: 0.65rem; font-weight: 800; color: #94a3b8;
  background: #1e293b; border: 1px solid #334155;
  border-radius: 5px; padding: 2px 6px; flex-shrink: 0; white-space: nowrap;
}
.ph-form-dots { display: flex; gap: 4px; }
.ph-form-dots--right { justify-content: flex-end; }
.ph-form-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ph-form-dot--w { background: #2AA587; }
.ph-form-dot--d { background: #64748b; }
.ph-form-dot--l { background: #ef4444; }
.ph-hero-separator { flex-shrink: 0; text-align: center; }
.ph-hero-vs { font-size: 1.4rem; font-weight: 900; color: #334155; }
.ph-hero-score { font-size: 2rem; font-weight: 900; color: #f1f5f9; letter-spacing: -1px; }
.ph-hero-score.live { color: #2AA587; }
.ph-live-pill {
  font-size: 0.62rem; font-weight: 800; color: #2AA587;
  background: rgba(42,165,135,0.15); border-radius: 20px;
  padding: 2px 9px; margin-top: 4px; display: inline-block;
  animation: pulse-live 1.5s ease-in-out infinite;
}
@keyframes pulse-live { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

.ph-hero-prediction {
  background: rgba(42,165,135,0.12);
  border: 1px solid rgba(42,165,135,0.35);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ph-hero-pred-eyebrow {
  font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: #2AA587;
}
.ph-hero-pred-main { display: flex; align-items: baseline; justify-content: space-between; }
.ph-hero-pred-tip { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
.ph-hero-pred-pct { font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1; }

.ph-hero-prob-block { display: flex; flex-direction: column; gap: 8px; }
.ph-hero-prob-bar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; gap: 2px; }
.ph-hero-prob-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: #64748b; }
.ph-hero-prob-labels strong { color: #cbd5e1; margin-left: 4px; }
.ph-prob-team {
  max-width: 90px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; display: inline-block; vertical-align: middle;
}
.ph-prob-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.ph-prob-dot--h { background: #3b82f6; }
.ph-prob-dot--d { background: #64748b; }
.ph-prob-dot--a { background: #f97316; }

.ph-bar-h { background: #3b82f6; }
.ph-bar-d { background: #64748b; }
.ph-bar-a { background: #f97316; }

.ph-hero-footer { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: #94a3b8; padding-top: 4px; }
.ph-hero-xg { display: flex; align-items: center; gap: 6px; }
.ph-hero-xg strong { font-size: 0.9rem; }
.ph-xg-home { color: #3b82f6; }
.ph-xg-away { color: #f97316; }
.ph-hero-xg-sep { color: #334155; }
.ph-hero-footer-cta { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: #2AA587; }

/* ── Secondary matches ── */
.ph-secondary-stack { display: flex; flex-direction: column; gap: 12px; }
.ph-secondary, .ph-secondary:hover, .ph-secondary:focus,
.ph-secondary *, .ph-secondary:hover * { text-decoration: none !important; }
.ph-secondary {
  background: var(--pitch-surface);
  border: 1px solid var(--pitch-border);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--pitch-text);
  display: block;
  flex: 1;
  transition: background 0.2s, border-color 0.2s;
}
.ph-secondary:hover { background: #d1f5ec; border-color: #7dd3c0; color: var(--pitch-text); }
.ph-secondary-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ph-secondary-league {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; color: var(--pitch-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ph-secondary-time {
  font-size: 0.78rem; font-weight: 700;
  background: #f1f5f9; border-radius: 5px; padding: 2px 8px; color: var(--pitch-text);
}
.ph-secondary-crest { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.ph-secondary-crest-ph {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: #f1f5f9; border: 1px solid var(--pitch-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--pitch-muted); font-weight: 700;
}
.ph-secondary-rows { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.ph-secondary-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #1e293b; }
.ph-secondary-row--draw { color: #64748b; }
.ph-secondary-team-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-secondary-draw-label { flex: 1; font-size: 0.75rem; }
.ph-secondary-pct { font-size: 0.88rem; flex-shrink: 0; }
.ph-secondary-pct--h { color: #3b82f6; }
.ph-secondary-pct--d { color: #64748b; }
.ph-secondary-pct--a { color: #f97316; }
.ph-secondary-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; gap: 2px; }

/* ── Section divider ── */
.ph-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 52px 0 22px;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--pitch-muted);
}
.ph-divider::before, .ph-divider::after { content: ''; flex: 1; height: 1px; background: var(--pitch-border); }
.ph-divider::before { max-width: 20px; }

/* ── Digest filter ── */
.ph-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ph-filter-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; font-weight: 700; color: var(--pitch-muted);
  background: var(--pitch-surface); border: 1px solid var(--pitch-border);
  border-radius: 20px; padding: 6px 14px; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.ph-filter-btn:hover { border-color: var(--pitch-accent); color: var(--pitch-accent); }
.ph-filter-btn.active { background: var(--pitch-accent); border-color: var(--pitch-accent); color: #fff; }

/* ── Digest ── */
.ph-digest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.ph-digest-card {
  background: var(--pitch-surface); border: 1px solid var(--pitch-border);
  border-radius: 14px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 16px; transition: box-shadow 0.15s;
}
.ph-digest-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.08); }
.ph-digest-header { display: flex; align-items: center; gap: 12px; }
.ph-digest-league-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.ph-digest-league-meta { flex: 1; min-width: 0; }
.ph-digest-league-name {
  font-size: 1rem; font-weight: 800; color: var(--pitch-text); letter-spacing: -0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-digest-league-country { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--pitch-muted); margin-top: 2px; }
.ph-digest-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.ph-digest-accuracy { font-size: 0.7rem; font-weight: 800; color: #2AA587; letter-spacing: 0.03em; }
.ph-digest-accuracy::before { content: "1X2 "; color: #94a3b8; font-weight: 600; }
.ph-digest-badge {
  flex-shrink: 0; font-size: 1.1rem; font-weight: 900;
  color: var(--pitch-accent); background: #e8f8f3; border-radius: 8px; padding: 4px 12px; line-height: 1;
}
.ph-digest-list { display: flex; flex-direction: column; border-top: 1px solid var(--pitch-border); flex: 1; }
.ph-digest-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #f8fafc;
  text-decoration: none; color: var(--pitch-text); transition: color 0.1s;
}
.ph-digest-row:last-child { border-bottom: none; }
.ph-digest-row:hover { color: var(--pitch-accent); }
.ph-digest-row-time { font-size: 0.75rem; font-weight: 700; color: var(--pitch-muted); flex-shrink: 0; width: 38px; }
.ph-digest-row-match { display: flex; align-items: baseline; gap: 6px; flex: 1; min-width: 0; font-size: 0.88rem; }
.ph-digest-row-home { font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.ph-digest-row-sep { font-size: 0.72rem; color: var(--pitch-muted); flex-shrink: 0; }
.ph-digest-row-away { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; color: var(--pitch-muted); }
.ph-digest-cta {
  display: block; text-align: center; font-size: 0.82rem; font-weight: 700;
  color: var(--pitch-accent); text-decoration: none;
  border: 1px solid var(--pitch-border); border-radius: 8px; padding: 9px;
  transition: background 0.15s, border-color 0.15s;
}
.ph-digest-cta:hover { background: #e8f8f3; border-color: var(--pitch-accent); }

/* ── Performance per lega ── */
.ph-perf-table-wrap { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 14px; overflow: hidden; }
.ph-perf-table { width: 100%; border-collapse: collapse; }
.ph-perf-th {
  padding: 11px 18px;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--pitch-muted);
  background: #f8fafc; border-bottom: 1px solid var(--pitch-border); text-align: left;
}
.ph-perf-th--num { text-align: right; }
.ph-perf-row { display: table-row; text-decoration: none; color: var(--pitch-text); transition: background 0.1s; }
.ph-perf-row:hover { background: #f8fafc; }
.ph-perf-row:not(:last-child) td { border-bottom: 1px solid var(--pitch-border); }
.ph-perf-td { padding: 13px 18px; vertical-align: middle; }
.ph-perf-td--league { display: flex; align-items: center; gap: 12px; }
.ph-perf-td--num { text-align: right; }
.ph-perf-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.ph-perf-league-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-perf-league-name { font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-perf-league-country { font-size: 0.72rem; color: var(--pitch-muted); display: flex; align-items: center; gap: 4px; }
.ph-perf-total { font-size: 0.82rem; color: var(--pitch-muted); font-weight: 600; }
.ph-perf-acc { font-size: 0.88rem; font-weight: 800; color: #94a3b8; }
.ph-perf-acc--good { color: #2AA587; }
.ph-perf-na { font-size: 0.82rem; color: #cbd5e1; }
.ph-journal-footer { text-align: center; padding: 22px 0; }

/* ── Rankings ── */
.ph-ranks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .ph-ranks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .ph-ranks-grid { grid-template-columns: 1fr; } }

.ph-rank-card { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 14px; overflow: hidden; }
.ph-rank-head { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--pitch-border); background: #f8fafc; }
.ph-rank-icon { font-size: 1rem; line-height: 1; }
.ph-rank-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--pitch-text); flex: 1; }
.ph-rank-sublabel { font-size: 0.62rem; color: var(--pitch-muted); white-space: nowrap; }
.ph-rank-list { list-style: none; margin: 0; padding: 4px 0; }
.ph-rank-row { display: flex; align-items: center; gap: 9px; padding: 7px 16px; border-bottom: 1px solid #f8fafc; }
.ph-rank-row:last-child { border-bottom: none; }
.ph-rank-num { font-size: 0.65rem; font-weight: 700; color: var(--pitch-border); min-width: 14px; text-align: right; }
.ph-rank-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.ph-rank-logo-ph { width: 20px; height: 20px; background: #f1f5f9; border-radius: 50%; flex-shrink: 0; }
.ph-rank-name { flex: 1; font-size: 0.82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-rank-stat { font-size: 0.8rem; font-weight: 800; color: var(--pitch-accent); white-space: nowrap; }
.ph-rank-dots { display: flex; gap: 3px; flex-shrink: 0; }
.ph-rank-dot { width: 7px; height: 7px; border-radius: 50%; }
.ph-rank-dot--w { background: #2AA587; }
.ph-rank-dot--d { background: #94a3b8; }
.ph-rank-dot--l { background: #ef4444; }
.ph-rank-league { font-size: 0.62rem; color: var(--pitch-muted); margin-left: 2px; }

/* ── Leaderboard ── */
.ph-lb { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 14px; overflow: hidden; }
.ph-lb-row, .ph-lb-row:hover { text-decoration: none !important; color: var(--pitch-text); }
.ph-lb-row { display: flex; align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--pitch-border); transition: background 0.1s; }
.ph-lb-row:last-child { border-bottom: none; }
.ph-lb-row:hover { background: #f8fafc; }
.ph-lb-rank { font-size: 0.72rem; font-weight: 700; color: var(--pitch-border); min-width: 18px; text-align: right; }
.ph-lb-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.ph-lb-logo-ph { width: 22px; height: 22px; background: #f1f5f9; border-radius: 50%; flex-shrink: 0; }
.ph-lb-league { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ph-lb-meta { min-width: 0; }
.ph-lb-name { font-size: 0.88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ph-lb-country { display: flex; align-items: center; gap: 4px; font-size: 0.68rem; color: var(--pitch-muted); }
.ph-lb-total { font-size: 0.72rem; color: var(--pitch-muted); min-width: 50px; text-align: right; white-space: nowrap; }
.ph-lb-acc-wrap { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.ph-lb-bar { flex: 1; height: 5px; background: var(--pitch-border); border-radius: 3px; overflow: hidden; }
.ph-lb-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }
.ph-lb-bar--good { background: #2AA587; }
.ph-lb-bar--ok   { background: #d97706; }
.ph-lb-bar--low  { background: #94a3b8; }
.ph-lb-acc { font-size: 0.85rem; font-weight: 800; color: #94a3b8; min-width: 42px; text-align: right; }
.ph-lb-acc--good { color: #2AA587; }
.ph-lb-acc--ok   { color: #d97706; }
@media (max-width: 600px) {
  .ph-lb-total { display: none; }
  .ph-lb-acc-wrap { min-width: 90px; }
}

/* ── Utility ── */
.ph-link { font-size: 0.85rem; color: var(--pitch-accent); font-weight: 700; text-decoration: none; }
.ph-link:hover { text-decoration: underline; }
.ph-empty { text-align: center; padding: 64px 0; color: var(--pitch-muted); }
.ph-empty-icon { font-size: 2.5rem; margin-bottom: 16px; color: var(--pitch-border); }

/* ══ APP SHELL (sidebar layout) ════════════════════════════════════════════ */
.pitch-app-shell { display: flex; align-items: flex-start; }
.pitch-sidebar {
  width: 224px; flex-shrink: 0; position: sticky; top: 0;
  height: calc(100vh - 52px); overflow-y: auto;
  border-right: 1px solid var(--pitch-border); background: var(--pitch-surface);
  scrollbar-width: thin; scrollbar-color: var(--pitch-border) transparent;
}
.pitch-sidebar-inner { padding: 12px 0 32px; }
.pitch-main { flex: 1; min-width: 0; padding: 24px 32px; }
@media (max-width: 992px) {
  .pitch-sidebar { display: none; }
  .pitch-main { padding: 16px; }
}

.psb-header {
  font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--pitch-muted);
  padding: 6px 16px 10px; border-bottom: 1px solid var(--pitch-border); margin-bottom: 6px;
}
.psb-section { margin-bottom: 2px; }
.psb-section > summary { list-style: none; }
.psb-section > summary::-webkit-details-marker { display: none; }
.psb-country {
  display: flex; align-items: center; gap: 7px; padding: 7px 16px 3px;
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--pitch-muted); cursor: pointer; user-select: none;
}
.psb-country:hover { color: var(--pitch-text); }
.psb-chevron { margin-left: auto; font-size: 0.6rem; color: var(--pitch-border); transition: transform 0.15s; }
details.psb-section[open] .psb-chevron { transform: rotate(90deg); }
.psb-leagues { list-style: none; margin: 0; padding: 0 0 4px; }
.psb-league {
  display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 28px;
  font-size: 0.8rem; font-weight: 500; color: var(--pitch-text); text-decoration: none;
  border-left: 2px solid transparent; transition: background 0.1s, color 0.1s;
  white-space: nowrap; overflow: hidden;
}
.psb-league:hover { background: #f8fafc; color: var(--pitch-accent); text-decoration: none; }
.psb-league.active { border-left-color: var(--pitch-accent); color: var(--pitch-accent); background: #f0fdf9; font-weight: 700; }
.psb-logo { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.psb-logo-ph { width: 16px; height: 16px; border-radius: 50%; background: #e2e8f0; flex-shrink: 0; }
.psb-name { overflow: hidden; text-overflow: ellipsis; }
.psb-divider { height: 1px; background: var(--pitch-border); margin: 10px 16px 6px; }
.psb-type-label {
  font-size: 0.55rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--pitch-border);
  padding: 6px 28px 2px;
}

/* ══ LEAGUES INDEX ══════════════════════════════════════════════════════════ */
.lgi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
@media (max-width: 860px) { .lgi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lgi-grid { grid-template-columns: 1fr; } }

.lgi-card, .lgi-card:hover, .lgi-card:focus { text-decoration: none !important; }
.lgi-card {
  background: var(--pitch-surface); border: 1px solid var(--pitch-border);
  border-radius: 14px; padding: 20px; color: var(--pitch-text);
  display: flex; flex-direction: column; gap: 0;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.lgi-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); border-color: var(--pitch-accent); }
.lgi-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.lgi-card-logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.lgi-card-logo-ph { width: 52px; height: 52px; border-radius: 12px; background: #f1f5f9; border: 1px solid var(--pitch-border); flex-shrink: 0; }
.lgi-card-name { font-size: 1rem; font-weight: 800; color: var(--pitch-text); line-height: 1.2; margin-bottom: 5px; }
.lgi-card-country { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--pitch-muted); }
.lgi-card-season { font-size: 0.7rem; color: var(--pitch-muted); margin-top: 3px; }
.lgi-card-stats { display: flex; gap: 20px; align-items: flex-end; padding: 14px 0; border-top: 1px solid var(--pitch-border); border-bottom: 1px solid var(--pitch-border); margin-bottom: 12px; }
.lgi-stat { display: flex; flex-direction: column; gap: 3px; }
.lgi-stat-val { font-size: 1.5rem; font-weight: 900; color: var(--pitch-accent); line-height: 1; letter-spacing: -0.5px; }
.lgi-stat-val--sm { font-size: 0.9rem; font-weight: 700; color: var(--pitch-text); }
.lgi-stat-lbl { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--pitch-muted); }
.lgi-stat-sep { width: 1px; height: 28px; background: var(--pitch-border); align-self: center; }
.lgi-card-footer { display: flex; align-items: center; justify-content: space-between; }
.lgi-upcoming { font-size: 0.75rem; color: var(--pitch-muted); }
.lgi-upcoming strong { color: var(--pitch-text); font-weight: 700; }
.lgi-cta { font-size: 0.78rem; font-weight: 700; color: var(--pitch-accent); }

.lgi-country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.lgi-country-card { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 12px; overflow: hidden; transition: box-shadow 0.15s; }
.lgi-country-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
/* <details> reset */
.lgi-country-card > summary { list-style: none; }
.lgi-country-card > summary::-webkit-details-marker { display: none; }
.lgi-country-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 11px; background: #f8fafc; border-bottom: 1px solid var(--pitch-border); cursor: pointer; user-select: none; }
.lgi-country-card:not([open]) .lgi-country-head { border-bottom: none; }
.lgi-country-chevron { margin-left: auto; font-size: 0.6rem; color: var(--pitch-border); transition: transform 0.15s; flex-shrink: 0; }
.lgi-country-card[open] .lgi-country-chevron { transform: rotate(90deg); }
.lgi-country-flag { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }
.lgi-country-name { font-size: 0.88rem; font-weight: 800; color: var(--pitch-text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-country-badge { font-size: 0.65rem; font-weight: 700; background: var(--pitch-border); color: var(--pitch-muted); border-radius: 20px; padding: 2px 7px; flex-shrink: 0; }
.lgi-country-leagues { list-style: none; margin: 0; padding: 4px 0; }
.lgi-country-league, .lgi-country-league:hover { text-decoration: none !important; }
.lgi-country-league { display: flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: 0.8rem; font-weight: 500; color: var(--pitch-text); border-bottom: 1px solid #f1f5f9; transition: background 0.1s, color 0.1s; }
.lgi-country-league:last-child { border-bottom: none; }
.lgi-country-league:hover { background: #f0fdf9; color: var(--pitch-accent); }
.lgi-country-league-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.lgi-country-league-ph { width: 18px; height: 18px; background: #e2e8f0; border-radius: 50%; flex-shrink: 0; }
.lgi-country-league-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-country-league-acc { font-size: 0.68rem; font-weight: 700; color: var(--pitch-muted); flex-shrink: 0; }
.lgi-country-league-acc--good { color: #2AA587; }
.lgi-country-league--featured { font-weight: 700; color: var(--pitch-text); }
.lgi-country-type-label {
  font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--pitch-muted);
  padding: 5px 14px 3px;
  border-top: 1px solid var(--pitch-border);
  background: #f8fafc;
}

/* ══ VALUE PAGE ═════════════════════════════════════════════════════════════ */
.value-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 16px; padding: 32px; margin-bottom: 28px; color: #fff; }
.value-card { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 12px; overflow: hidden; margin-bottom: 12px; transition: box-shadow 0.15s; }
.value-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.value-card-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--pitch-border); gap: 10px; }
.value-match-name { font-weight: 700; font-size: 0.92rem; color: var(--pitch-text); }
.value-meta { font-size: 0.72rem; color: var(--pitch-muted); margin-top: 2px; }
.value-badge { font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.value-badge--high  { background: #dcfce7; color: #16a34a; }
.value-badge--med   { background: #fef9c3; color: #854d0e; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.value-col { padding: 12px 10px; text-align: center; border-right: 1px solid var(--pitch-border); position: relative; }
.value-col:last-child { border-right: none; }
.value-col--highlighted { background: rgba(42,165,135,0.06); }
.value-outcome { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pitch-muted); margin-bottom: 6px; }
.value-model-prob { font-size: 1.1rem; font-weight: 900; font-family: 'IBM Plex Mono', monospace; }
.value-market-prob { font-size: 0.75rem; color: var(--pitch-muted); font-family: 'IBM Plex Mono', monospace; margin-top: 2px; }
.value-pp { display: inline-block; margin-top: 6px; font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.value-pp--pos { background: #dcfce7; color: #16a34a; }
.value-pp--neg { background: #f1f5f9; color: #94a3b8; }
.value-pp--neutral { color: var(--pitch-muted); }
.value-footer-row { padding: 8px 16px; border-top: 1px solid var(--pitch-border); display: flex; align-items: center; justify-content: space-between; font-size: 0.68rem; color: var(--pitch-muted); background: #fafafa; }

/* ══ MATCH SHOW ═════════════════════════════════════════════════════════════ */
.ms-hero { background: #0f172a; border-radius: 16px; overflow: hidden; margin-bottom: 24px; color: #fff; }
.ms-header { padding: 22px 28px 20px; }
.ms-eyebrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ms-league-link { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; color: #64748b; text-decoration: none; }
.ms-league-link:hover { color: #94a3b8; text-decoration: none; }
.ms-kickoff { font-size: 0.75rem; color: #94a3b8; }
.ms-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.ms-team { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.ms-team-logo { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6)); }
.ms-team-logo-ph { width: 64px; height: 64px; border-radius: 50%; background: #1e293b; border: 2px solid #334155; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #94a3b8; font-weight: 800; }
.ms-team-name { font-size: 1.1rem; font-weight: 800; color: #f1f5f9; text-align: center; line-height: 1.2; }
.ms-team-rank { font-size: 0.62rem; font-weight: 700; color: #94a3b8; background: #1e293b; border: 1px solid #334155; border-radius: 5px; padding: 2px 8px; white-space: nowrap; }
.ms-form-dots { display: flex; gap: 5px; }
.ms-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ms-dot--w { background: #2AA587; }
.ms-dot--d { background: #475569; }
.ms-dot--l { background: #ef4444; }
.ms-center { text-align: center; flex-shrink: 0; }
.ms-score { font-size: 2.6rem; font-weight: 900; color: #f1f5f9; letter-spacing: -2px; line-height: 1; }
.ms-score--live { color: #2AA587; }
.ms-score-lbl { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #334155; margin-top: 5px; }
.ms-score-lbl--live { color: #2AA587; }
.ms-time { font-size: 1rem; font-weight: 700; color: #334155; margin-bottom: 4px; }
.ms-vs { font-size: 1.4rem; font-weight: 900; color: #1e293b; }
.ms-analysis { border-top: 1px solid #1e293b; padding: 24px 28px; }
.ms-analysis-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #2AA587; border: 1px solid rgba(42,165,135,0.35); border-radius: 4px; padding: 3px 8px; margin-bottom: 20px; }
.ms-probs { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-bottom: 14px; }
.ms-prob-block { text-align: center; padding: 0 6px; }
.ms-prob-block--home { text-align: left; padding-left: 0; }
.ms-prob-block--away { text-align: right; padding-right: 0; }
.ms-prob-block--draw { border-left: 1px solid #1e293b; border-right: 1px solid #1e293b; }
.ms-prob-pct { font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.ms-prob-pct--home { color: #3b82f6; }
.ms-prob-pct--draw { color: #94a3b8; }
.ms-prob-pct--away { color: #f97316; }
.ms-prob-lbl { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; margin-top: 4px; }
.ms-prob-team { font-size: 0.75rem; font-weight: 600; color: #64748b; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; gap: 2px; margin-bottom: 20px; }
.ms-bar-h { background: #3b82f6; }
.ms-bar-d { background: #475569; }
.ms-bar-a { background: #f97316; flex: 1; }
.ms-xg { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid #1e293b; }
.ms-xg-num { font-size: 1.6rem; font-weight: 700; line-height: 1; min-width: 58px; }
.ms-xg-num--home { color: #3b82f6; }
.ms-xg-num--away { color: #f97316; text-align: right; }
.ms-xg-track { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ms-xg-bar-wrap { display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.ms-xg-bar-h { background: #3b82f6; height: 100%; }
.ms-xg-bar-a { background: #f97316; height: 100%; }
.ms-xg-lbl { text-align: center; font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #334155; }
.ms-tip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: rgba(42,165,135,0.1); border: 1px solid rgba(42,165,135,0.3); border-radius: 10px; padding: 14px 20px; margin-top: 4px; }
.ms-tip-label { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #2AA587; margin-bottom: 5px; }
.ms-tip-value { font-size: 1.05rem; font-weight: 900; color: #fff; }
.ms-tip-stat { text-align: right; }
.ms-tip-stat-num { font-size: 1.3rem; font-weight: 900; color: #2AA587; line-height: 1; }
.ms-tip-stat-lbl { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #334155; margin-top: 3px; }
.ms-card { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 12px; overflow: hidden; }
.ms-card-head { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-bottom: 1px solid var(--pitch-border); font-size: 0.7rem; font-weight: 700; color: var(--pitch-muted); text-transform: uppercase; letter-spacing: 0.07em; background: #fafafa; }
.ms-form-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #f8fafc; font-size: 0.82rem; }
.ms-form-row:last-child { border-bottom: none; }
@media (max-width: 600px) {
  .ms-header { padding: 16px; }
  .ms-analysis { padding: 16px; }
  .ms-prob-pct { font-size: 1.7rem; }
  .ms-score { font-size: 2rem; }
  .ms-team-name { font-size: 0.9rem; }
}

/* ══ POST-MATCH ══════════════════════════════════════════════════════════════ */
.pm-hero { background: #0f172a; border-radius: 16px; overflow: hidden; margin-bottom: 20px; color: #fff; }
.pm-hero-head { padding: 18px 28px 0; }
.pm-eyebrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pm-league-link { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-decoration: none; }
.pm-league-link:hover { color: #cbd5e1; text-decoration: none; }
.pm-date { font-size: 0.75rem; color: #64748b; }
.pm-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-bottom: 20px; }
.pm-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pm-team-logo { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); }
.pm-team-logo-ph { width: 68px; height: 68px; border-radius: 50%; background: #1e293b; border: 2px solid #334155; font-size: 1.2rem; color: #94a3b8; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pm-team-name { font-size: 1.05rem; font-weight: 800; color: #f1f5f9; text-align: center; line-height: 1.2; }
.pm-team-detail { font-size: 0.65rem; color: #94a3b8; }
.pm-score-block { text-align: center; flex-shrink: 0; }
.pm-score { font-size: 3rem; font-weight: 900; color: #f1f5f9; letter-spacing: -3px; line-height: 1; }
.pm-score-lbl { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; margin-top: 4px; }
.pm-pen { font-size: 0.8rem; color: #94a3b8; margin-top: 2px; }
.pm-verdict { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 28px; border-top: 1px solid #1e293b; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.pm-verdict--correct { background: rgba(42,165,135,0.1); color: #2AA587; }
.pm-verdict--wrong   { background: rgba(239,68,68,0.08);  color: #ef4444; }
.pm-verdict--none    { background: rgba(71,85,105,0.1);   color: #94a3b8; }
.pm-goals-strip { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 28px; border-top: 1px solid #1e293b; gap: 12px; }
.pm-goals-list { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; }
.pm-goals-list--away { align-items: flex-end; text-align: right; }
.pm-goal-item { color: #94a3b8; line-height: 1.3; }
.pm-goal-item strong { color: #e2e8f0; font-weight: 600; }
.pm-goal-item .pm-goal-min { color: #64748b; font-size: 0.68rem; }
.pm-stats { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.pm-stats-title { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--pitch-muted); margin-bottom: 14px; }
.pm-stat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pm-stat-row:last-child { margin-bottom: 0; }
.pm-stat-val { font-size: 0.82rem; font-weight: 700; min-width: 34px; }
.pm-stat-val--home { color: #3b82f6; text-align: right; }
.pm-stat-val--away { color: #f97316; }
.pm-stat-bar-wrap { flex: 1; height: 6px; background: var(--pitch-border); border-radius: 3px; overflow: hidden; display: flex; }
.pm-stat-bar-h { background: #3b82f6; height: 100%; }
.pm-stat-bar-a { background: #f97316; height: 100%; margin-left: auto; }
.pm-stat-lbl { font-size: 0.65rem; color: var(--pitch-muted); font-weight: 600; text-align: center; flex-shrink: 0; min-width: 80px; }
.pm-timeline { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.pm-timeline-head { padding: 10px 16px; border-bottom: 1px solid var(--pitch-border); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--pitch-muted); background: #fafafa; }
.pm-event-row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; padding: 7px 16px; border-bottom: 1px solid #f8fafc; font-size: 0.78rem; }
.pm-event-row:last-child { border-bottom: none; }
.pm-event-home { color: var(--pitch-text); }
.pm-event-away { color: var(--pitch-text); text-align: right; }
.pm-event-min { text-align: center; font-size: 0.65rem; font-weight: 700; color: var(--pitch-muted); font-family: 'IBM Plex Mono', monospace; }
.pm-icon-goal  { color: #2AA587; margin-right: 4px; }
.pm-icon-card-y { display: inline-block; width: 9px; height: 12px; background: #eab308; border-radius: 1px; margin-right: 4px; vertical-align: middle; }
.pm-icon-card-r { display: inline-block; width: 9px; height: 12px; background: #ef4444; border-radius: 1px; margin-right: 4px; vertical-align: middle; }
.pm-icon-sub  { color: #64748b; margin-right: 3px; font-size: 0.7rem; }
.pm-sub-out { color: #ef4444; }
.pm-sub-in  { color: #2AA587; }
.pm-lineup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .pm-lineup-grid { grid-template-columns: 1fr; } }
.pm-lineup-card { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 12px; overflow: hidden; }
.pm-lineup-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--pitch-border); background: #fafafa; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--pitch-muted); }
.pm-lineup-formation { margin-left: auto; font-size: 0.8rem; font-weight: 900; color: var(--pitch-text); letter-spacing: -0.3px; }
.pm-player-row { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-bottom: 1px solid #f8fafc; font-size: 0.8rem; }
.pm-player-row:last-child { border-bottom: none; }
.pm-player-num { font-size: 0.65rem; font-weight: 700; color: var(--pitch-muted); min-width: 18px; text-align: center; font-family: 'IBM Plex Mono', monospace; }
.pm-player-photo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--pitch-border); }
.pm-player-photo-ph { width: 24px; height: 24px; border-radius: 50%; background: var(--pitch-border); flex-shrink: 0; }
.pm-player-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-player-pos { font-size: 0.6rem; font-weight: 700; color: var(--pitch-muted); min-width: 16px; text-align: center; }
.pm-player-rating { font-size: 0.72rem; font-weight: 800; min-width: 30px; text-align: right; font-family: 'IBM Plex Mono', monospace; }
.pm-player-rating--great  { color: #16a34a; }
.pm-player-rating--good   { color: #2AA587; }
.pm-player-rating--avg    { color: #eab308; }
.pm-player-rating--poor   { color: #ef4444; }
.pm-player-goal-badge { font-size: 0.6rem; background: #2AA587; color: #fff; border-radius: 10px; padding: 1px 5px; font-weight: 700; flex-shrink: 0; }
.pm-subs-divider { padding: 5px 14px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pitch-muted); background: #f8fafc; border-top: 1px solid var(--pitch-border); border-bottom: 1px solid var(--pitch-border); }
.pm-stats-table { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.pm-stats-table-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--pitch-border); background: #fafafa; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--pitch-muted); }
.pm-stats-table table { width: 100%; }
.pm-stats-table th { padding: 6px 10px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--pitch-muted); text-align: center; border-bottom: 1px solid var(--pitch-border); }
.pm-stats-table th:first-child { text-align: left; padding-left: 14px; }
.pm-stats-table td { padding: 6px 10px; font-size: 0.78rem; text-align: center; border-bottom: 1px solid #f8fafc; }
.pm-stats-table td:first-child { text-align: left; padding-left: 14px; font-weight: 500; }
.pm-stats-table tr:last-child td { border-bottom: none; }
.pm-pred-recap { background: #0f172a; border-radius: 12px; padding: 18px 22px; color: #fff; margin-bottom: 16px; }
.pm-pred-recap-title { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; margin-bottom: 14px; }
.pm-pred-probs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.pm-pred-prob-block { text-align: center; }
.pm-pred-prob-val { font-size: 1.6rem; font-weight: 900; line-height: 1; letter-spacing: -1px; font-family: 'IBM Plex Mono', monospace; }
.pm-pred-prob-val--home { color: #3b82f6; }
.pm-pred-prob-val--draw { color: #94a3b8; }
.pm-pred-prob-val--away { color: #f97316; }
.pm-pred-prob-lbl { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #64748b; margin-top: 3px; }
@media (max-width: 600px) {
  .pm-hero-head { padding: 16px 16px 0; }
  .pm-goals-strip { padding: 10px 16px; }
  .pm-score { font-size: 2.2rem; }
  .pm-team-name { font-size: 0.9rem; }
  .pm-stats { padding: 14px; }
}

/* ══ TIP OF THE DAY ══════════════════════════════════════════════════════════ */
.tod-hero { background: #0f172a; border-radius: 16px; padding: 24px 28px 20px; color: #fff; display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin-bottom: 16px; }
.tod-eyebrow { display: flex; align-items: center; justify-content: space-between; }
.tod-label { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #2AA587; border: 1px solid rgba(42,165,135,0.4); border-radius: 4px; padding: 3px 8px; }
.tod-league { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: #64748b; }
.tod-time { background: #1e293b; border-radius: 6px; padding: 3px 9px; font-size: 0.82rem; font-weight: 700; color: #e2e8f0; }
.tod-teams { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #1e293b; }
.tod-side { display: flex; align-items: center; gap: 14px; flex: 1; }
.tod-side--right { flex-direction: row-reverse; }
.tod-crest { width: 68px; height: 68px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.tod-crest-ph { width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0; background: #1e293b; border: 2px solid #334155; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #94a3b8; font-weight: 800; }
.tod-team-name { font-size: 1.2rem; font-weight: 800; color: #f1f5f9; line-height: 1.15; }
.tod-vs { font-size: 1.4rem; font-weight: 900; color: #334155; flex-shrink: 0; }
.tod-prediction { background: rgba(42,165,135,0.12); border: 1px solid rgba(42,165,135,0.35); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.tod-pred-eyebrow { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #2AA587; }
.tod-pred-main { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tod-pred-tip { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
.tod-pred-meta { display: flex; gap: 24px; }
.tod-pred-stat { text-align: center; }
.tod-pred-val { font-size: 1.4rem; font-weight: 900; color: #fff; letter-spacing: -0.5px; line-height: 1; }
.tod-pred-lbl { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; margin-top: 3px; }
.tod-prob-block { display: flex; flex-direction: column; gap: 8px; }
.tod-prob-bar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; gap: 2px; }
.tod-bar-h { background: #3b82f6; }
.tod-bar-d { background: #64748b; }
.tod-bar-a { background: #f97316; flex: 1; }
.tod-prob-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: #64748b; }
.tod-prob-labels strong { color: #cbd5e1; margin-left: 4px; }
.tod-prob-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.tod-prob-dot--h { background: #3b82f6; }
.tod-prob-dot--d { background: #64748b; }
.tod-prob-dot--a { background: #f97316; }
.tod-prob-team { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.tod-footer { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: #94a3b8; padding-top: 4px; }
.tod-xg { display: flex; align-items: center; gap: 6px; }
.tod-xg strong { font-size: 0.9rem; }
.tod-xg-home { color: #3b82f6; }
.tod-xg-away { color: #f97316; }
.tod-result { margin-left: auto; font-size: 0.85rem; font-weight: 700; }
.tod-result--won { color: #2AA587; }
.tod-result--lost { color: #ef4444; }
.tod-result--pending { color: #94a3b8; }

/* ══ TEAM PAGE ══════════════════════════════════════════════════════════════ */
.tm-hero { background: #0f172a; border-radius: 16px; overflow: hidden; margin-bottom: 20px; color: #fff; padding: 24px 28px; }
.tm-hero-top { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.tm-logo { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6)); flex-shrink: 0; }
.tm-logo-ph { width: 80px; height: 80px; border-radius: 50%; background: #1e293b; border: 2px solid #334155; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #94a3b8; font-weight: 800; flex-shrink: 0; }
.tm-name { font-size: 1.8rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.5px; color: #f1f5f9; margin: 0; }
.tm-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.tm-meta-tag { font-size: 0.7rem; font-weight: 700; color: #64748b; background: #1e293b; border: 1px solid #334155; border-radius: 6px; padding: 3px 9px; }
.tm-elo { font-size: 0.7rem; font-weight: 800; color: #2AA587; background: rgba(42,165,135,0.12); border: 1px solid rgba(42,165,135,0.3); border-radius: 6px; padding: 3px 9px; }
.tm-stats-strip { display: flex; border-top: 1px solid #1e293b; margin-top: 20px; padding-top: 18px; flex-wrap: wrap; gap: 20px; }
.tm-stat { display: flex; flex-direction: column; gap: 3px; }
.tm-stat-val { font-size: 1.6rem; font-weight: 900; color: #f1f5f9; line-height: 1; letter-spacing: -0.5px; font-family: 'IBM Plex Mono', monospace; }
.tm-stat-val--accent { color: #2AA587; }
.tm-stat-lbl { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }
.tm-stat-sep { width: 1px; background: #1e293b; align-self: stretch; }
.tm-form { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.tm-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tm-dot--w { background: #2AA587; }
.tm-dot--d { background: #475569; }
.tm-dot--l { background: #ef4444; }
.tm-indices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 560px) { .tm-indices { grid-template-columns: 1fr; } }
.tm-index-card { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 12px; padding: 14px 16px; }
.tm-index-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pitch-muted); margin-bottom: 8px; }
.tm-index-val { font-size: 1.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.5px; margin-bottom: 8px; font-family: 'IBM Plex Mono', monospace; }
.tm-index-bar { height: 5px; background: var(--pitch-border); border-radius: 3px; overflow: hidden; }
.tm-index-bar-fill { height: 100%; border-radius: 3px; }
.tm-standing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tm-standing-card { background: var(--pitch-surface); border: 1px solid var(--pitch-border); border-radius: 12px; padding: 14px 16px; }
.tm-standing-league { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 0.8rem; font-weight: 700; }
.tm-standing-row { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 4px; }
.tm-standing-key { color: var(--pitch-muted); }
.tm-standing-val { font-weight: 700; font-family: 'IBM Plex Mono', monospace; }
.tm-standing-zone { margin-top: 8px; padding: 3px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; display: inline-block; }
.tm-match-row { display: grid; grid-template-columns: 80px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #f8fafc; font-size: 0.8rem; }
.tm-match-row:last-child { border-bottom: none; }
.tm-match-date { font-size: 0.7rem; color: var(--pitch-muted); font-family: 'IBM Plex Mono', monospace; }
.tm-match-teams { overflow: hidden; }
.tm-match-league { font-size: 0.65rem; color: var(--pitch-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-match-opp { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-match-ha { font-size: 0.62rem; font-weight: 700; color: var(--pitch-muted); flex-shrink: 0; }
.tm-match-score { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; text-align: right; }
.tm-result-w { color: #fff; background: #2AA587; border-radius: 4px; padding: 1px 6px; font-size: 0.65rem; font-weight: 800; }
.tm-result-d { color: #fff; background: #475569; border-radius: 4px; padding: 1px 6px; font-size: 0.65rem; font-weight: 800; }
.tm-result-l { color: #fff; background: #ef4444; border-radius: 4px; padding: 1px 6px; font-size: 0.65rem; font-weight: 800; }
.tm-upcoming-row { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #f8fafc; font-size: 0.8rem; }
.tm-upcoming-row:last-child { border-bottom: none; }
.tm-player-row { display: grid; grid-template-columns: 32px 1fr 40px 50px 32px 32px; align-items: center; gap: 8px; padding: 7px 14px; border-bottom: 1px solid #f8fafc; font-size: 0.78rem; }
.tm-player-row:last-child { border-bottom: none; }
@media (max-width: 600px) {
  .tm-hero { padding: 16px; }
  .tm-name { font-size: 1.4rem; }
  .tm-match-row { grid-template-columns: 64px 1fr auto; }
  .tm-match-ha { display: none; }
}

/* ══ MOBILE RESPONSIVE FIXES ════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Nasconde la colonna probabilità nei listing partite su schermi piccoli */
  .match-prob-col { display: none !important; }

  /* Stats strip homepage: riduce padding e nasconde separatori verticali */
  .ph-stats-strip { padding: 16px; gap: 12px; }
  .ph-stat-sep { display: none; }
  .ph-stat-num { font-size: 1.5rem; }
  .ph-stat-cta { margin-left: 0; width: 100%; }

  /* Masthead homepage: semplifica su mobile */
  .ph-masthead { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ph-masthead-right { width: 100%; justify-content: space-between; }

  /* ── Hero card (big match) ── */
  /* Riduce il padding del contenitore */
  .ph-hero { padding: 16px 14px 14px; gap: 14px; }

  /* Crest più piccoli: 68px → 44px */
  .ph-hero-crest,
  .ph-hero-crest-ph { width: 44px; height: 44px; font-size: 0.95rem; }

  /* Gap ridotto tra crest e testo */
  .ph-hero-side { gap: 8px; }

  /* CHIAVE: senza min-width:0 il flex item non si restringe sotto il suo contenuto */
  .ph-hero-side-info { min-width: 0; }

  /* Nome squadra: tronca col puntini invece di sfondare il layout */
  .ph-hero-team-name {
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  /* Nascondi il badge classifica (#4 ecc.) per non sprecare spazio */
  .ph-standing-badge { display: none; }

  /* Separator vs/score: margine ridotto */
  .ph-hero-vs { font-size: 1.1rem; }
  .ph-hero-score { font-size: 1.5rem; }

  /* Probabilità footer: font e team name più piccoli */
  .ph-hero-prob-labels { font-size: 0.65rem; }
  .ph-prob-team { max-width: 55px; }

  /* Prediction block: testo più compatto */
  .ph-hero-pred-tip { font-size: 1.1rem; }
  .ph-hero-pred-pct { font-size: 1.5rem; }
}

/* ══ CONFEDERAZIONI ══════════════════════════════════════════════════════════ */
.fi-conmebol {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/9/9c/Official_Image_of_CONMEBOL.svg') !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
