/* Kaxel Football — follows the shared KX design tokens */
.football-wrap{padding-bottom:26px}
.football-hero{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:28px;padding:42px 0 22px;min-height:310px}
.football-hero h1{font-size:clamp(3rem,8vw,5.4rem);line-height:.96;letter-spacing:-.06em;margin:18px 0}
.football-hero h1 span{color:var(--gold-text)}
.football-hero-copy>p{max-width:38em;color:var(--muted);font-size:1.08rem}
.football-hero-tags{display:flex;gap:14px;flex-wrap:wrap;align-items:center;color:var(--muted);font-size:.88rem;margin-top:18px}

.fb-live-count.on{color:var(--text);font-weight:700}
.fb-live-count.on::before{content:"";display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:var(--bad);animation:fb-pulse 1.6s ease-out infinite}

/* Hero art: football pitch */
.football-hero-art{height:245px;position:relative;display:grid;place-items:center;overflow:hidden}
.fb-pitch{position:absolute;inset:14px 4%;border:2px solid var(--line-2);border-radius:18px;background:linear-gradient(90deg,var(--glass) 0 50%,transparent 50%) }
.fb-pitch::before{content:"";position:absolute;left:50%;top:0;bottom:0;border-left:2px solid var(--line-2)}
.fb-pitch::after{content:"";position:absolute;left:50%;top:50%;width:120px;aspect-ratio:1;transform:translate(-50%,-50%);border:2px solid var(--line-2);border-radius:50%}
.fb-ball{position:relative;font-size:8rem;line-height:1;filter:drop-shadow(0 20px 24px rgba(0,0,0,.28));transform:rotate(-15deg);animation:fb-roll 1s cubic-bezier(.2,.8,.2,1) both}
.fb-art-label{position:absolute;right:7%;bottom:16px;font:800 1.1rem/1 var(--f-display);letter-spacing:.12em;color:var(--gold-text);transform:rotate(-8deg)}

/* Toolbar */
.football-section{padding:18px 0}
.football-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.football-tabs,.football-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.fb-tab{border:1px solid var(--line);background:var(--glass);color:var(--muted);border-radius:999px;padding:9px 15px;font:600 .9rem var(--f-body);cursor:pointer;transition:background .15s,color .15s}
.fb-tab:hover{color:var(--text)}
.fb-tab.active{background:var(--gold);border-color:var(--gold);color:var(--gold-ink)}
.football-actions input{color:var(--text);background:var(--glass);border:1px solid var(--line);border-radius:12px;padding:9px 11px;font:inherit;min-width:0}
.football-actions input[type=search]{width:170px}
.football-actions input[type=date]{max-width:160px}
#fbRefresh.busy{opacity:.55;cursor:progress}
.fb-notice{color:var(--muted);padding:12px 2px;font-size:.9rem}
.fb-notice.error{color:var(--bad)}

/* Match cards */
.fb-matches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fb-match{border:1px solid var(--line);border-radius:var(--r-xl);background:var(--glass);padding:17px;min-width:0;transition:border-color .18s}
.fb-match:hover{border-color:var(--line-2)}
.fb-match.is-live{box-shadow:inset 3px 0 0 var(--bad)}
.fb-match-top{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.78rem;margin-bottom:16px}
.fb-live{display:inline-flex;align-items:center;gap:6px;color:var(--bad);font-weight:800;letter-spacing:.04em}
.fb-dot{width:8px;height:8px;border-radius:50%;background:currentColor;animation:fb-pulse 1.6s ease-out infinite}
.fb-teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
.fb-team{display:grid;justify-items:center;text-align:center;gap:8px;min-width:0}
.fb-team img{width:46px;height:46px;object-fit:contain}
.fb-team span{font-size:2rem;line-height:46px}
.fb-team b{font-size:.9rem;overflow-wrap:anywhere}
.fb-score{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:14px;background:var(--glass-2);font:800 1.55rem var(--f-display);font-variant-numeric:tabular-nums;white-space:nowrap}
.fb-vs{font-size:.8rem;font-weight:700;color:var(--muted)}
.fb-match-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:13px;border-top:1px solid var(--line)}
.fb-match-bottom small{color:var(--muted)}
.fb-watch{border:0;border-radius:999px;padding:9px 14px;background:var(--gold);color:var(--gold-ink);font:700 .85rem var(--f-body);cursor:pointer}
.fb-watch:disabled{opacity:.45;cursor:not-allowed}
.fb-empty{grid-column:1/-1;display:grid;justify-items:center;gap:12px;padding:30px;border:1px dashed var(--line-2);border-radius:18px;color:var(--muted);text-align:center}
.fb-more-wrap{text-align:center;margin-top:22px}
.fb-skeleton{height:168px;border-radius:var(--r-xl);border:1px solid var(--line);background:linear-gradient(100deg,var(--glass) 30%,var(--glass-2) 50%,var(--glass) 70%) 0 0/300% 100%;animation:fb-shimmer 1.4s linear infinite}

/* Player */
.fb-player-panel{margin:24px 0;padding:20px;border:1px solid var(--line);border-radius:var(--r-xl);background:var(--glass)}
.fb-player-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.fb-player-heading h2{font-size:clamp(1.2rem,4vw,1.8rem)}
.fb-player-frame{position:relative;aspect-ratio:16/9;background:#000;border-radius:16px;overflow:hidden}
.fb-player-frame video{width:100%;height:100%;display:block;background:#000}
.fb-player-empty{position:absolute;inset:0;display:grid;place-items:center;padding:20px;text-align:center;color:#aaa;background:#000;pointer-events:none}
.fb-player-empty[hidden]{display:none}
.fb-server-heading{display:flex;justify-content:space-between;gap:10px;margin:18px 0 10px}
.fb-server-heading span{color:var(--muted);font-size:.85rem;text-align:right}
.fb-servers{display:flex;gap:8px;flex-wrap:wrap}
.fb-server{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:var(--glass-2);color:var(--text);padding:9px 14px;cursor:pointer;font:600 .88rem var(--f-body)}
.fb-server small{font-size:.68rem;font-weight:700;opacity:.65;letter-spacing:.04em}
.fb-server.limited{opacity:.6}
.fb-server.active{background:var(--gold);border-color:var(--gold);color:var(--gold-ink);opacity:1}
.fb-disclaimer,.fb-footnote{color:var(--muted);font-size:.86rem;line-height:1.55}
.fb-disclaimer{margin:15px 0 0}
.fb-footnote{display:flex;gap:11px;padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--glass);margin:22px 0 0}
.fb-footnote span{color:var(--gold-text);font-size:1.15rem}
.fb-footnote p{margin:0}

.football-wrap :is(button,input):focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* League categories */
.fb-leagues{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;margin-bottom:4px;scrollbar-width:thin}
.fb-leagues[hidden]{display:none}
.fb-chip{flex:none;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--glass);color:var(--muted);border-radius:999px;padding:8px 14px;font:600 .86rem var(--f-body);cursor:pointer;white-space:nowrap}
.fb-chip small{font-size:.72rem;opacity:.7}
.fb-chip:hover{color:var(--text)}
.fb-chip.active{background:var(--gold);border-color:var(--gold);color:var(--gold-ink)}
.fb-league{margin:-6px 0 14px;font-size:.8rem;font-weight:600;color:var(--gold-text)}

@keyframes fb-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--bad) 60%,transparent)}70%,100%{box-shadow:0 0 0 8px transparent}}
@keyframes fb-roll{from{transform:translateX(-140%) rotate(-400deg);opacity:0}to{transform:rotate(-15deg);opacity:1}}
@keyframes fb-shimmer{to{background-position:-300% 0}}
@media(prefers-reduced-motion:reduce){.fb-ball,.fb-dot,.fb-live-count.on::before,.fb-skeleton{animation:none}}

@media(max-width:760px){
  .football-hero{grid-template-columns:1fr;gap:0;padding:28px 0 12px;min-height:0}
  .football-hero-art{height:170px;order:-1}
  .fb-ball{font-size:6rem}
  .fb-pitch::after{width:84px}
  .football-hero h1{font-size:clamp(2.8rem,13vw,4rem)}
  .fb-matches{grid-template-columns:1fr}
  .fb-match{padding:15px}
  .fb-player-panel{padding:12px}
  .football-toolbar{align-items:flex-start}
  .football-actions{width:100%}
  .football-actions input[type=search]{flex:1 1 100%;width:auto}
  .football-actions input[type=date]{flex:1;max-width:none}
}
