/* Football H2H frontend styles */
.foot-wrap{max-width:1100px;margin:0 auto;padding:24px 18px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1a2230;line-height:1.6;}
.foot-wrap h1{font-size:30px;margin:0 0 6px;line-height:1.2;}
.foot-wrap h2{font-size:22px;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #e7ecf3;}
.foot-wrap h3{font-size:17px;margin:18px 0 8px;}
.foot-sub{color:#5a6678;margin:0 0 18px;font-size:15px;}
.foot-card{background:#fff;border:1px solid #e7ecf3;border-radius:12px;padding:20px;margin:18px 0;box-shadow:0 1px 3px rgba(20,40,80,.05);}
.foot-breadcrumbs{font-size:13px;color:#7a8699;margin-bottom:14px;}
.foot-breadcrumbs a{color:#2563eb;text-decoration:none;}
.foot-breadcrumbs a:hover{text-decoration:underline;}
table.foot-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 1px 3px rgba(20,40,80,.05);}
table.foot-table th{background:#0f2a4a;color:#fff;text-align:left;padding:10px 12px;font-weight:600;font-size:13px;}
table.foot-table td{padding:9px 12px;border-bottom:1px solid #eef2f7;}
table.foot-table tr:hover td{background:#f5f9ff;}
table.foot-table tr:last-child td{border-bottom:none;}
.rank{font-weight:700;color:#0f2a4a;width:34px;text-align:center;}
.team-cell{display:flex;align-items:center;gap:8px;}
.team-cell img{width:22px;height:22px;object-fit:contain;}
.team-cell a{color:#1a2230;text-decoration:none;font-weight:600;}
.team-cell a:hover{color:#2563eb;}
.badge{display:inline-block;min-width:20px;text-align:center;padding:2px 7px;border-radius:5px;font-size:12px;font-weight:700;color:#fff;}
.badge-w{background:#16a34a;}
.badge-d{background:#d97706;}
.badge-l{background:#dc2626;}
.score{font-weight:700;font-variant-numeric:tabular-nums;}
.foot-grid{display:flex;flex-wrap:wrap;gap:10px;}
.foot-pill{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid #e7ecf3;border-radius:30px;padding:7px 14px;font-size:14px;text-decoration:none;color:#1a2230;transition:.15s;}
.foot-pill:hover{border-color:#2563eb;color:#2563eb;transform:translateY(-1px);}
.foot-pill img{width:20px;height:20px;object-fit:contain;}
.foot-team-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
.foot-team-head img{max-height:84px;width:auto;}
.foot-info{list-style:none;padding:0;margin:14px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;}
.foot-info li{background:#f5f9ff;border-radius:8px;padding:10px 12px;font-size:14px;}
.foot-info b{display:block;color:#5a6678;font-size:12px;text-transform:uppercase;letter-spacing:.03em;font-weight:600;}
.foot-form{display:flex;gap:5px;}
.foot-match-list{list-style:none;padding:0;margin:0;}
.foot-match-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #eef2f7;font-size:14px;}
.foot-match-list li:last-child{border-bottom:none;}
.foot-match-list .when{color:#7a8699;font-size:12px;width:96px;flex:none;}
.foot-match-list .teams{flex:1;}
.foot-match-list .teams a{color:#1a2230;text-decoration:none;font-weight:600;}
.foot-match-list .teams a:hover{color:#2563eb;}
.h2h-stats{display:grid;grid-template-columns:1fr auto 1fr;gap:0;align-items:center;margin:18px 0;background:#fff;border:1px solid #e7ecf3;border-radius:12px;overflow:hidden;}
.h2h-stats .side{padding:20px;text-align:center;}
.h2h-stats .side h3{margin:6px 0;font-size:20px;}
.h2h-stats .side img{max-height:60px;width:auto;margin:0 auto;}
.h2h-stats .mid{padding:20px;text-align:center;background:#0f2a4a;color:#fff;min-width:120px;}
.h2h-stats .mid .big{font-size:28px;font-weight:800;line-height:1.1;}
.h2h-stats .mid .lbl{font-size:11px;opacity:.8;text-transform:uppercase;letter-spacing:.05em;}
.foot-cta{margin:24px 0;display:flex;gap:10px;flex-wrap:wrap;}
a.foot-btn{display:inline-block;background:#2563eb;color:#fff;text-decoration:none;padding:10px 18px;border-radius:8px;font-weight:600;font-size:14px;}
a.foot-btn:hover{background:#1d4ed8;}
.foot-muted{color:#7a8699;font-size:13px;}
.foot-404{text-align:center;padding:60px 20px;}

/* ---- archive: leagues (rich cards) ---- */
.foot-league-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;margin:18px 0;}
.foot-league-card{display:block;background:#fff;border:1px solid #e7ecf3;border-radius:12px;padding:20px;text-decoration:none;color:#1a2230;box-shadow:0 1px 3px rgba(20,40,80,.05);transition:.15s;}
.foot-league-card:hover{border-color:#2563eb;transform:translateY(-2px);}
.foot-league-card h2{margin:0 0 4px;font-size:19px;color:#0f2a4a;padding:0;border:0;}
.foot-mini{width:100%;border-collapse:collapse;margin:12px 0 10px;font-size:13px;}
.foot-mini td{padding:6px;border-top:1px solid #eef2f7;}
.foot-mini .pts{text-align:right;font-weight:700;color:#0f2a4a;}
.foot-card-link{color:#2563eb;font-weight:600;font-size:14px;}

/* ---- archive: teams (card grid) ---- */
.foot-team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px;margin:18px 0;}
.foot-team-card{display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;border:1px solid #e7ecf3;border-radius:12px;padding:16px 10px;text-decoration:none;color:#1a2230;transition:.15s;}
.foot-team-card:hover{border-color:#2563eb;transform:translateY(-2px);}
.foot-team-logo{width:48px;height:48px;object-fit:contain;}
.foot-team-name{font-weight:600;font-size:14px;text-align:center;line-height:1.2;}
.foot-team-league{font-size:11px;color:#7a8699;text-align:center;}
@media(max-width:640px){.foot-wrap{padding:16px 12px;}.foot-wrap h1{font-size:24px;}table.foot-table{font-size:13px;}.h2h-stats{grid-template-columns:1fr;}.h2h-stats .mid{order:-1;}}

.foot-prose{font-size:15px;line-height:1.75;color:#2a3444;margin:10px 0 4px;}
.foot-prose p{margin:0 0 10px;}
.foot-keystats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:14px 0;}
.foot-keystat{background:#f5f9ff;border:1px solid #e7ecf3;border-radius:10px;padding:14px;text-align:center;}
.foot-keystat .v{font-size:20px;font-weight:800;color:#0f2a4a;}
.foot-keystat .l{font-size:12px;color:#7a8699;text-transform:uppercase;letter-spacing:.03em;margin-top:4px;}
.foot-related{list-style:none;padding:0;margin:10px 0;display:flex;flex-wrap:wrap;gap:8px;}
.foot-related li a{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e7ecf3;border-radius:20px;padding:6px 13px;font-size:13px;text-decoration:none;color:#1a2230;}
.foot-related li a:hover{border-color:#2563eb;color:#2563eb;}
.foot-related li a img{width:18px;height:18px;object-fit:contain;}
.foot-mini-link{font-size:12px;color:#2563eb;text-decoration:none;margin-left:6px;border:1px solid #dbe7ff;border-radius:6px;padding:1px 7px;}
.foot-mini-link:hover{background:#2563eb;color:#fff;}
.foot-h2h-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;margin:18px 0;}
.foot-h2h-card{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #e7ecf3;border-radius:12px;padding:14px;text-decoration:none;color:#1a2230;transition:.15s;}
.foot-h2h-card:hover{border-color:#2563eb;transform:translateY(-2px);}
.foot-h2h-card .h2h-teams{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:600;font-size:14px;}
.foot-h2h-card .h2h-team{display:inline-flex;align-items:center;gap:7px;min-width:0;}
.foot-h2h-card .h2h-team img{width:24px;height:24px;object-fit:contain;flex:none;}
.foot-h2h-card .h2h-team{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.foot-h2h-card .h2h-vs{color:#7a8699;font-weight:700;flex:none;}
.foot-h2h-card .lg{font-size:11px;color:#7a8699;}

.foot-prose{font-size:15px;line-height:1.75;color:#2a3444;margin:10px 0 4px;}
.foot-prose p{margin:0 0 10px;}
.foot-keystats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:14px 0;}
.foot-keystat{background:#f5f9ff;border:1px solid #e7ecf3;border-radius:10px;padding:14px;text-align:center;}
.foot-keystat .v{font-size:20px;font-weight:800;color:#0f2a4a;}
.foot-keystat .l{font-size:12px;color:#7a8699;text-transform:uppercase;letter-spacing:.03em;margin-top:4px;}
.foot-related{list-style:none;padding:0;margin:10px 0;display:flex;flex-wrap:wrap;gap:8px;}
.foot-related li a{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e7ecf3;border-radius:20px;padding:6px 13px;font-size:13px;text-decoration:none;color:#1a2230;}
.foot-related li a:hover{border-color:#2563eb;color:#2563eb;}
.foot-related li a img{width:18px;height:18px;object-fit:contain;}
.foot-mini-link{font-size:12px;color:#2563eb;text-decoration:none;margin-left:6px;border:1px solid #dbe7ff;border-radius:6px;padding:1px 7px;}
.foot-mini-link:hover{background:#2563eb;color:#fff;}
.foot-h2h-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;margin:18px 0;}
.foot-h2h-card{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #e7ecf3;border-radius:12px;padding:14px;text-decoration:none;color:#1a2230;transition:.15s;}
.foot-h2h-card:hover{border-color:#2563eb;transform:translateY(-2px);}
.foot-h2h-card .h2h-teams{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:600;font-size:14px;}
.foot-h2h-card .h2h-team{display:inline-flex;align-items:center;gap:7px;min-width:0;}
.foot-h2h-card .h2h-team img{width:24px;height:24px;object-fit:contain;flex:none;}
.foot-h2h-card .h2h-team{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.foot-h2h-card .h2h-vs{color:#7a8699;font-weight:700;flex:none;}
.foot-h2h-card .lg{font-size:11px;color:#7a8699;}
