/* AFM Premium UI Pass v2
   Visual-only layer: hierarchy, spacing, typography and component coherence.
   Loaded after legacy styles so current functionality is preserved. */
:root{
  --afmp-bg:#050b12;
  --afmp-surface:#09131d;
  --afmp-surface-2:#0d1823;
  --afmp-surface-3:#111f2c;
  --afmp-line:rgba(160,180,198,.15);
  --afmp-line-strong:rgba(160,180,198,.25);
  --afmp-text:#f4f7f9;
  --afmp-muted:#8e9eac;
  --afmp-muted-2:#6f8190;
  --afmp-gold:#e1b84d;
  --afmp-gold-soft:rgba(225,184,77,.10);
  --afmp-green:#6bd0a3;
  --afmp-red:#ef8a82;
  --afmp-blue:#79b8ff;
  --afmp-r-sm:10px;
  --afmp-r:14px;
  --afmp-r-lg:20px;
  --afmp-shadow:0 18px 48px rgba(0,0,0,.22);
}
body.afm-premium{
  background:
    radial-gradient(circle at 50% -18%,rgba(31,70,96,.22),transparent 38%),
    var(--afmp-bg)!important;
  color:var(--afmp-text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  letter-spacing:0;
}
body.afm-premium:before{display:none!important}
body.afm-premium .afm-page-watermark{opacity:.025!important;filter:grayscale(1)}
body.afm-premium button,
body.afm-premium a,
body.afm-premium select,
body.afm-premium input{font-family:inherit}
body.afm-premium button:focus-visible,
body.afm-premium a:focus-visible,
body.afm-premium select:focus-visible,
body.afm-premium input:focus-visible{
  outline:2px solid var(--afmp-gold);
  outline-offset:2px;
}
body.afm-premium .shell{
  max-width:1180px;
  padding:26px 22px 88px;
}
body.afm-premium .back-link,
body.afm-premium .back{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  margin:0 0 16px;
  padding:0 11px;
  border:1px solid var(--afmp-line);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:#c7d0d7;
  text-decoration:none;
  font-size:11px;
  font-weight:750;
}
body.afm-premium .panel{
  border:1px solid var(--afmp-line)!important;
  border-radius:var(--afmp-r-lg)!important;
  background:var(--afmp-surface)!important;
  box-shadow:none!important;
}
body.afm-premium .eyebrow,
body.afm-premium .kicker{
  color:var(--afmp-gold)!important;
  font-size:10px!important;
  font-weight:850!important;
  letter-spacing:.13em!important;
}
body.afm-premium .empty{color:var(--afmp-muted)}
body.afm-premium .empty strong{color:var(--afmp-text)}

/* Shared page heads */
body.afm-premium .subpage-head,
body.afm-premium .competition-hero,
body.afm-premium .club-hero{
  border:1px solid var(--afmp-line)!important;
  border-radius:var(--afmp-r-lg)!important;
  background:linear-gradient(145deg,rgba(14,27,39,.98),rgba(8,17,26,.98))!important;
  box-shadow:none!important;
}
body.afm-premium .subpage-head:after,
body.afm-premium .competition-hero:after,
body.afm-premium .club-hero:after{opacity:.35}
body.afm-premium .subpage-head h1,
body.afm-premium .competition-hero h1,
body.afm-premium .club-hero h1{
  color:var(--afmp-text)!important;
  letter-spacing:-.025em!important;
  text-transform:none!important;
}
body.afm-premium .subpage-head p,
body.afm-premium .competition-hero p,
body.afm-premium .club-hero p{color:var(--afmp-muted)!important}

/* HOME */
body.afm-home .topbar{
  height:68px!important;
  padding:0 max(18px,calc((100vw - 1180px)/2))!important;
  background:rgba(5,11,18,.88)!important;
  border-bottom:1px solid var(--afmp-line)!important;
  backdrop-filter:blur(18px)!important;
}
body.afm-home .brand-logo{width:48px!important;height:48px!important}
body.afm-home .brand-row strong{font-family:inherit!important;font-size:16px!important;font-weight:850!important}
body.afm-home .brand-row small{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-home .icon-btn,
body.afm-home .avatar{
  width:40px!important;height:40px!important;
  border:1px solid var(--afmp-line)!important;
  background:var(--afmp-surface)!important;
  color:var(--afmp-text)!important;
}
body.afm-home .icon-btn{position:relative;padding:0!important}
body.afm-home .icon-btn svg{
  width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round
}
body.afm-home .notification-count{
  position:absolute;right:-3px;top:-3px;min-width:17px;height:17px;padding:0 4px;
  border-radius:10px;background:var(--afmp-gold);color:#071019;
  font-size:8px;font-weight:900;line-height:17px;text-align:center
}
body.afm-home .top-search{text-decoration:none}
body.afm-home .home{max-width:1180px!important}
body.afm-home .home-welcome{
  margin:8px 0 22px!important;
  padding:17px 18px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:var(--afmp-r-lg)!important;
  background:var(--afmp-surface)!important;
  box-shadow:none!important;
}
body.afm-home .home-welcome:before,
body.afm-home .home-welcome:after{display:none!important}
body.afm-home .home-welcome-copy small{font-size:10px!important;color:var(--afmp-muted)!important;letter-spacing:.09em}
body.afm-home .home-welcome-copy strong{font-size:23px!important;font-weight:850!important;letter-spacing:-.02em}
body.afm-home .home-season-pill{
  min-height:38px!important;
  border-color:var(--afmp-line)!important;
  background:var(--afmp-surface-2)!important;
  color:var(--afmp-green)!important;
  font-size:10px!important;
}
body.afm-home .home-refresh{
  min-height:38px!important;
  border-color:var(--afmp-line)!important;
  background:var(--afmp-surface-2)!important;
  color:#d8e0e6!important;
  font-size:10px!important;
}
body.afm-home .home-manager-link{
  min-height:38px!important;
  border-radius:10px!important;
  background:var(--afmp-gold)!important;
  color:#081019!important;
  font-size:10px!important;
  box-shadow:none!important;
}
body.afm-home .section-head{
  border-bottom:0!important;
  padding-bottom:0!important;
  margin-bottom:12px!important;
}
body.afm-home .section-head h2{
  font-family:inherit!important;
  text-transform:none!important;
  font-size:22px!important;
  letter-spacing:-.02em!important;
}
body.afm-home .my-club-picker-wrap label{font-size:10px!important;color:var(--afmp-muted)!important}
body.afm-home .club-picker-controls{gap:8px!important}
body.afm-home .club-switch{
  border-color:var(--afmp-line)!important;
  background:var(--afmp-surface)!important;
  color:var(--afmp-gold)!important;
  border-radius:12px!important;
}
body.afm-home .my-club-picker-wrap select{
  border-color:var(--afmp-line)!important;
  background:var(--afmp-surface)!important;
  color:var(--afmp-text)!important;
  border-radius:12px!important;
}
body.afm-home .home-club-card{
  padding:18px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:22px!important;
  background:var(--afmp-surface)!important;
  box-shadow:var(--afmp-shadow)!important;
}
body.afm-home .home-club-top{grid-template-columns:70px minmax(0,1fr) auto!important;gap:14px!important}
body.afm-home .home-club-top img,
body.afm-home .home-club-fallback{
  width:70px!important;height:70px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:16px!important;
  background:var(--afmp-surface-2)!important;
}
body.afm-home .home-club-copy small{font-size:10px!important;color:var(--afmp-muted)!important;line-height:1.3!important}
body.afm-home .home-club-copy strong{font-size:27px!important;font-weight:900!important;letter-spacing:-.03em!important}
body.afm-home .home-club-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px}
body.afm-home .home-club-switch-btn{
  min-height:40px;padding:0 11px;border:1px solid rgba(225,184,77,.34);
  border-radius:10px;background:var(--afmp-gold-soft);color:#efca64;
  font-size:9px;font-weight:850;white-space:nowrap
}
body.afm-home .home-club-switch-btn span{margin-left:4px;font-size:10px}
body.afm-home .home-club-open{
  min-height:40px!important;
  padding:0 11px!important;
  border-radius:10px!important;
  background:transparent!important;
  border:1px solid var(--afmp-line-strong)!important;
  color:#dce3e8!important;
  font-size:9px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  white-space:nowrap!important
}
body.afm-home .home-kpis{gap:8px!important;margin-top:14px!important}
body.afm-home .home-kpis a{
  min-height:68px!important;
  padding:11px!important;
  border:0!important;
  border-radius:13px!important;
  background:var(--afmp-surface-2)!important;
}
body.afm-home .home-kpis small{font-size:9px!important;color:var(--afmp-muted)!important;letter-spacing:.07em}
body.afm-home .home-kpis b{margin-top:5px!important;font-size:16px!important;color:var(--afmp-text)!important}
body.afm-home .home-actions{gap:8px!important;margin-top:10px!important}
body.afm-home .home-actions a{
  min-height:46px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:12px!important;
  background:transparent!important;
  color:#cbd4db!important;
  font-size:10px!important;
}
body.afm-home .home-actions a:first-child{
  border-color:rgba(225,184,77,.35)!important;
  background:var(--afmp-gold-soft)!important;
  color:#f0cd6a!important;
}
body.afm-home .club-match-center,
body.afm-home .manager-status{margin:18px 0!important}
body.afm-home .club-match-head h3,
body.afm-home .manager-status-head h3{font-size:17px!important;letter-spacing:-.01em}
body.afm-home .club-match-day{
  border-color:var(--afmp-line)!important;
  background:var(--afmp-surface-2)!important;
  color:var(--afmp-gold)!important;
  font-size:9px!important;
}
body.afm-home .club-match-card,
body.afm-home .manager-status-card,
body.afm-home .manager-all-clear{
  border:1px solid var(--afmp-line)!important;
  border-radius:15px!important;
  background:var(--afmp-surface)!important;
  box-shadow:none!important;
}
body.afm-home .club-match-card small,
body.afm-home .manager-status-card small,
body.afm-home .manager-status-card span,
body.afm-home .manager-all-clear small{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-home .club-match-card strong{font-size:13px!important}
body.afm-home .club-match-card .meta{font-size:9px!important}
body.afm-home .manager-status-card{min-height:88px!important}
body.afm-home .manager-status-card strong{font-size:20px!important}
body.afm-home .home-priority{
  border:1px solid rgba(225,184,77,.25)!important;
  border-radius:15px!important;
  background:var(--afmp-gold-soft)!important;
}
body.afm-home .home-priority small{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-home .home-priority strong{font-size:12px!important}
body.afm-home .home-priority a{font-size:10px!important;border-radius:10px!important}
body.afm-home .league-details-toggle,
body.afm-home .competitions-toggle{
  border:1px solid var(--afmp-line)!important;
  border-radius:12px!important;
  background:var(--afmp-surface)!important;
  color:#cdd6dc!important;
  font-size:10px!important;
}

/* FORMATION */
body.afm-lineup .page{width:min(100%,720px)!important;padding:18px 14px 40px!important}
body.afm-lineup .top{
  margin:0 0 18px!important;
  padding:4px 0 10px!important;
  border-bottom:1px solid var(--afmp-line);
}
body.afm-lineup .back{
  min-height:40px!important;
  padding:0 12px!important;
  border-color:var(--afmp-line)!important;
  background:transparent!important;
  color:#c9d2d8!important;
  font-size:11px!important;
}
body.afm-lineup .title{font-size:12px!important;color:var(--afmp-gold)!important;letter-spacing:.11em!important}
body.afm-lineup .day{
  padding:6px 8px;
  border-radius:999px;
  background:var(--afmp-gold-soft);
  color:var(--afmp-gold)!important;
  font-size:9px!important;
}
body.afm-lineup .hero{
  margin:0 0 10px!important;
  padding:12px 4px 16px!important;
  border-bottom:1px solid var(--afmp-line)!important;
}
body.afm-lineup .hero small{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-lineup .hero h1{margin:6px 0!important;font-size:32px!important;font-weight:900!important;letter-spacing:-.035em!important}
body.afm-lineup .hero .manager{font-size:12px!important;color:var(--afmp-muted)!important}
body.afm-lineup .club-logo{
  width:58px!important;height:58px!important;
  border-color:var(--afmp-line)!important;
  border-radius:15px!important;
  background:var(--afmp-surface)!important;
}
body.afm-lineup .index{margin:0 2px 13px!important;font-size:10px!important;color:var(--afmp-muted)!important}
body.afm-lineup .preview{background:var(--afmp-gold-soft)!important;color:var(--afmp-gold)!important}
body.afm-lineup .locked{
  border-color:rgba(239,138,130,.24)!important;
  background:rgba(239,138,130,.06)!important;
  color:#efaaa4!important;
  border-radius:13px!important;
  font-size:10px!important;
}
body.afm-lineup .opponent{
  margin-bottom:10px!important;
  padding:12px 14px!important;
  border-color:var(--afmp-line)!important;
  border-radius:15px!important;
  background:var(--afmp-surface)!important;
}
body.afm-lineup .opponent small{font-size:8px!important;color:var(--afmp-muted)!important}
body.afm-lineup .opponent strong{font-size:13px!important}
body.afm-lineup .afm-form{
  margin-bottom:10px!important;
  padding:11px 12px!important;
  border-color:var(--afmp-line)!important;
  border-radius:15px!important;
  background:var(--afmp-surface)!important;
}
body.afm-lineup .afm-form-head{margin-bottom:8px!important}
body.afm-lineup .afm-form-head strong{font-size:12px!important}
body.afm-lineup .history-mini{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-lineup .form-strip{gap:5px!important}
body.afm-lineup .form-item{padding:7px 3px!important;border-radius:9px!important;background:var(--afmp-surface-2)!important}
body.afm-lineup .form-item b{font-size:10px!important}
body.afm-lineup .form-item small{font-size:7px!important}
body.afm-lineup .timing{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:0!important;
  margin-bottom:9px!important;
  overflow:hidden;
  border:1px solid var(--afmp-line)!important;
  border-radius:15px!important;
  background:var(--afmp-surface)!important;
}
body.afm-lineup .timing>div{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  padding:11px 12px!important;
}
body.afm-lineup .timing>div+div{border-left:1px solid var(--afmp-line)!important}
body.afm-lineup .timing small{font-size:8px!important;color:var(--afmp-muted)!important}
body.afm-lineup .timing strong{font-size:11px!important}
body.afm-lineup .timing em{font-size:8px!important;color:var(--afmp-muted-2)!important}
body.afm-lineup .lineup-state{
  margin-bottom:12px!important;
  padding:9px 11px!important;
  border-color:var(--afmp-line)!important;
  border-radius:13px!important;
  background:transparent!important;
}
body.afm-lineup .lineup-state strong{font-size:9px!important;color:#cbd4db!important}
body.afm-lineup .countdown{font-size:9px!important}
body.afm-lineup .module-card{
  margin-bottom:8px!important;
  padding:10px 11px!important;
  border-color:var(--afmp-line)!important;
  border-radius:15px!important;
  background:var(--afmp-surface)!important;
}
body.afm-lineup .module-card label{font-size:10px!important;color:var(--afmp-muted)!important}
body.afm-lineup .module-card select{
  min-height:44px!important;
  border-color:var(--afmp-line-strong)!important;
  border-radius:11px!important;
  background:var(--afmp-surface-2)!important;
  font-size:21px!important;
}
body.afm-lineup .quick{gap:6px!important;padding-bottom:10px!important}
body.afm-lineup .quick button{
  min-height:34px!important;
  padding:0 11px!important;
  border-color:var(--afmp-line)!important;
  background:transparent!important;
  color:var(--afmp-muted)!important;
  font-size:9px!important;
}
body.afm-lineup .quick button.active{
  border-color:rgba(225,184,77,.40)!important;
  background:var(--afmp-gold-soft)!important;
  color:#f0cb63!important;
}
body.afm-lineup .pitch{
  border-radius:20px!important;
  box-shadow:0 20px 42px rgba(0,0,0,.26)!important;
  margin-bottom:10px!important;
}
body.afm-lineup .slot{width:76px!important}
body.afm-lineup .bubble{
  width:59px!important;height:59px!important;
  border-width:1.5px!important;
  border-color:rgba(225,184,77,.78)!important;
  box-shadow:0 6px 14px rgba(0,0,0,.26)!important;
}
body.afm-lineup .pname{margin-top:4px!important;font-size:9px!important}
body.afm-lineup .livevote,
body.afm-lineup .prob-badge,
body.afm-lineup .status-badge{border-width:1.5px!important}
body.afm-lineup .livebar,
body.afm-lineup .live-summary,
body.afm-lineup .modifier,
body.afm-lineup .switch-plus{
  border:1px solid var(--afmp-line)!important;
  border-radius:15px!important;
  background:var(--afmp-surface)!important;
  box-shadow:none!important;
}
body.afm-lineup .livebar{margin:10px 0!important;padding:10px 11px!important}
body.afm-lineup .livebar strong{font-size:10px!important;color:var(--afmp-green)!important}
body.afm-lineup .livebar small{font-size:8px!important}
body.afm-lineup .live-summary,
body.afm-lineup .modifier,
body.afm-lineup .switch-plus{padding:12px!important;margin-bottom:10px!important}
body.afm-lineup .live-summary h3,
body.afm-lineup .modifier h3,
body.afm-lineup .switch-plus h3{font-size:12px!important}
body.afm-lineup .score-big{font-size:24px!important;color:var(--afmp-gold)!important}
body.afm-lineup .score-meta,
body.afm-lineup .modifier-meta,
body.afm-lineup .switch-plus p,
body.afm-lineup .switch-note{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-lineup .modifier-main{font-size:10px!important}
body.afm-lineup .switch-grid select{
  height:42px!important;
  border-color:var(--afmp-line)!important;
  border-radius:10px!important;
  background:var(--afmp-surface-2)!important;
  font-size:10px!important;
}
body.afm-lineup .bench{
  margin-bottom:14px!important;
  padding:14px 12px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:18px!important;
  background:var(--afmp-surface)!important;
}
body.afm-lineup .bench h2{font-size:18px!important;color:var(--afmp-text)!important;letter-spacing:-.01em}
body.afm-lineup .bench p{margin:5px 0 12px!important;font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-lineup .bench-grid{gap:6px!important}
body.afm-lineup .bench-slot{
  min-height:88px!important;
  border-color:var(--afmp-line)!important;
  border-radius:11px!important;
  background:var(--afmp-surface-2)!important;
}
body.afm-lineup .bench-slot .mini{border-color:rgba(225,184,77,.55)!important}
body.afm-lineup .bench-slot small{font-size:7px!important}
body.afm-lineup .save{
  min-height:56px!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#efca65,#dca634)!important;
  box-shadow:0 12px 28px rgba(225,184,77,.15)!important;
  font-size:13px!important;
  letter-spacing:.08em!important;
}
body.afm-lineup .save-note{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-lineup .sheet{
  border-top-color:var(--afmp-line)!important;
  background:#08121b!important;
}
body.afm-lineup .pick{border-color:var(--afmp-line)!important;background:var(--afmp-surface-2)!important}
body.afm-lineup .pick strong{font-size:12px!important}
body.afm-lineup .pick small{font-size:9px!important}

/* MANAGER CENTER */
body.afm-manager{background:var(--afmp-bg)!important}
body.afm-manager .drawer{
  width:min(88vw,320px)!important;
  background:#07111a!important;
  border-right:1px solid var(--afmp-line)!important;
  box-shadow:none!important;
}
body.afm-manager .brand{
  min-height:68px!important;
  padding:12px 16px!important;
  background:#07111a!important;
  border-bottom:1px solid var(--afmp-line)!important;
}
body.afm-manager .brand img{width:44px!important;height:44px!important}
body.afm-manager .brand b{font-size:18px!important;color:var(--afmp-text)!important}
body.afm-manager .brand small{font-size:8px!important;color:var(--afmp-muted)!important}
body.afm-manager .block{padding:14px 16px!important;border-bottom:1px solid var(--afmp-line)!important}
body.afm-manager .label{margin-bottom:7px!important;font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-manager .profile strong{font-size:13px!important}
body.afm-manager .profile a{
  width:36px!important;height:36px!important;
  border-color:var(--afmp-line)!important;
  border-radius:10px!important;
}
body.afm-manager .clubbox{
  min-height:54px!important;
  grid-template-columns:42px minmax(0,1fr) 16px!important;
  padding:6px 8px!important;
  border-color:var(--afmp-line)!important;
  border-radius:13px!important;
  background:var(--afmp-surface)!important;
}
body.afm-manager .clublogo{width:42px!important;height:42px!important;border-radius:10px!important;background:var(--afmp-surface-2)!important}
body.afm-manager .clubbox select{font-size:13px!important}
body.afm-manager .club-quick{gap:8px!important;margin-top:9px!important}
body.afm-manager .club-quick a{
  min-height:42px!important;
  border-color:var(--afmp-line)!important;
  border-radius:11px!important;
  background:var(--afmp-surface)!important;
  color:#d3dce2!important;
  font-size:11px!important;
}
body.afm-manager .club-quick a:first-child{border-color:rgba(225,184,77,.30)!important;color:#f0ca62!important}
body.afm-manager .season{margin-top:10px!important}
body.afm-manager .seasonval{
  padding:6px 8px!important;
  border-color:var(--afmp-line)!important;
  background:var(--afmp-surface)!important;
  color:var(--afmp-green)!important;
  font-size:9px!important;
}
body.afm-manager nav{padding:8px 6px!important}
body.afm-manager nav a{
  min-height:50px!important;
  margin:2px 0!important;
  padding:0 12px!important;
  border-radius:11px!important;
  color:#c9d2d8!important;
  font-size:13px!important;
  font-weight:700!important;
}
body.afm-manager nav a:active{background:var(--afmp-surface-2)!important}
body.afm-manager .ico{width:24px!important;color:var(--afmp-muted)!important;font-size:16px!important}
body.afm-manager .badge{font-size:8px!important}
body.afm-manager .footer{padding:12px 16px 18px!important;border-top:1px solid var(--afmp-line)!important}
body.afm-manager .footer a{font-size:11px!important}
body.afm-manager .top{
  height:66px!important;
  border-bottom:1px solid var(--afmp-line)!important;
  background:rgba(5,11,18,.92)!important;
}
body.afm-manager .top strong{font-size:14px!important}
body.afm-manager .top small{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-manager .avatar{border-color:var(--afmp-line)!important}

/* CLUB */
body.afm-club .club-page{max-width:1050px}
body.afm-club .club-hero{padding:24px!important}
body.afm-club .club-identity{gap:18px!important}
body.afm-club .club-identity img,
body.afm-club .club-big-mark{
  width:88px!important;height:88px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:20px!important;
  background:var(--afmp-surface-2)!important;
}
body.afm-club .club-identity h1{font-size:34px!important}
body.afm-club .club-metrics{gap:8px!important;margin:12px 0!important}
body.afm-club .club-metrics article{
  border:0!important;
  border-radius:14px!important;
  background:var(--afmp-surface)!important;
  min-height:82px!important;
}
body.afm-club .club-metrics small{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-club .club-metrics strong{font-size:18px!important}
body.afm-club .club-links{gap:8px!important}
body.afm-club .club-links a{
  min-height:92px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:15px!important;
  background:var(--afmp-surface)!important;
  box-shadow:none!important;
}
body.afm-club .club-links a strong{font-size:13px!important}
body.afm-club .club-links a small{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-club .club-fixtures{margin-top:14px!important}
body.afm-club .movement{border-color:var(--afmp-line)!important}

/* ROSTER */
body.afm-roster .club-subpage{max-width:980px}
body.afm-roster .subpage-head{padding:18px 20px!important;margin-bottom:12px!important}
body.afm-roster .subpage-head h1{font-size:31px!important}
body.afm-roster .afm-head-logo{width:54px!important;height:54px!important}
body.afm-roster .roster-summary{gap:8px!important;margin-bottom:12px!important}
body.afm-roster .roster-summary>div{
  min-height:70px!important;
  border:0!important;
  border-radius:13px!important;
  background:var(--afmp-surface)!important;
  padding:10px!important;
}
body.afm-roster .roster-summary small{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-roster .roster-summary strong{font-size:17px!important}
body.afm-roster .role-filters{gap:6px!important;margin-bottom:8px!important}
body.afm-roster .role-filters button{
  min-height:38px!important;
  padding:0 12px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--afmp-muted)!important;
  font-size:10px!important;
}
body.afm-roster .role-filters button.active{
  background:var(--afmp-gold-soft)!important;
  border-color:rgba(225,184,77,.35)!important;
  color:#efca64!important;
}
body.afm-roster #rosterSearch{
  min-height:46px!important;
  margin-bottom:10px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:13px!important;
  background:var(--afmp-surface)!important;
  color:var(--afmp-text)!important;
  padding:0 14px!important;
  font-size:12px!important;
}
body.afm-roster #roster{padding:4px 14px 12px!important}
body.afm-roster .role-group h3{
  margin:14px 0 7px!important;
  font-size:12px!important;
  color:#dce3e8!important;
}
body.afm-roster .role-group h3 span{color:var(--afmp-muted)!important}
body.afm-roster .player-row{
  min-height:72px!important;
  padding:9px 4px!important;
  border:0!important;
  border-bottom:1px solid var(--afmp-line)!important;
  background:transparent!important;
  border-radius:0!important;
  gap:10px!important;
}
body.afm-roster .player-row>img,
body.afm-roster .player-avatar{
  width:50px!important;height:50px!important;
  border-radius:50%!important;
  border:1px solid var(--afmp-line)!important;
  background:var(--afmp-surface-2)!important;
}
body.afm-roster .player-row strong{font-size:13px!important}
body.afm-roster .player-row small{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-roster .player-row .player-stats-mini{gap:4px!important}
body.afm-roster .player-row .player-stats-mini span{
  min-width:34px!important;
  border:0!important;
  border-radius:8px!important;
  background:var(--afmp-surface-2)!important;
  padding:5px 3px!important;
}
body.afm-roster .player-row .player-stats-mini small{font-size:7px!important}
body.afm-roster .player-row .player-stats-mini b{font-size:9px!important;color:#d9bd69!important}
body.afm-roster .player-row>b{font-size:13px!important;color:#e8edf0!important}

/* COMPETITION */
body.afm-competition .competition-hero{padding:20px 22px!important;margin-bottom:10px!important}
body.afm-competition .competition-brand img{width:58px!important;height:58px!important}
body.afm-competition .competition-hero h1{font-size:32px!important}
body.afm-competition .afm-context-strip{margin-top:10px!important}
body.afm-competition .tabs{gap:6px!important;padding:4px 0 10px!important}
body.afm-competition .tabs button{
  min-height:38px!important;
  padding:0 12px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--afmp-muted)!important;
  font-size:10px!important;
}
body.afm-competition .tabs button.active{
  background:var(--afmp-gold-soft)!important;
  border-color:rgba(225,184,77,.35)!important;
  color:#efca64!important;
}
body.afm-competition .competition-body{padding:14px!important}
body.afm-competition .rule-note{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-competition .standings{font-size:12px!important}
body.afm-competition .standings th{
  padding:10px 7px!important;
  border-bottom:1px solid var(--afmp-line)!important;
  color:var(--afmp-muted)!important;
  font-size:8px!important;
}
body.afm-competition .standings td{
  padding:11px 7px!important;
  border-bottom:1px solid var(--afmp-line)!important;
}
body.afm-competition .standings tbody tr:active{background:var(--afmp-surface-2)!important}
body.afm-competition .team-cell{gap:9px!important}
body.afm-competition .team-cell img{width:29px!important;height:29px!important}
body.afm-competition .team-cell strong{font-size:12px!important}
body.afm-competition .standings td:nth-child(9) strong{color:var(--afmp-gold)!important}
body.afm-competition .matchday h3{font-size:13px!important;color:#dce3e8!important}
body.afm-competition .fixture{border-bottom-color:var(--afmp-line)!important;font-size:11px!important}
body.afm-competition .team-card{
  border:1px solid var(--afmp-line)!important;
  border-radius:14px!important;
  background:var(--afmp-surface-2)!important;
}
body.afm-competition .free-agents-search{border-color:var(--afmp-line)!important;background:var(--afmp-surface-2)!important}
body.afm-competition .free-agent-row{border-color:var(--afmp-line)!important}

/* LIVE RATINGS */
body.afm-live .live-shell{max-width:900px!important;padding:16px 14px 96px!important}
body.afm-live .hero{
  margin:10px 0 14px!important;
  padding:20px!important;
  border:1px solid var(--afmp-line)!important;
  border-radius:20px!important;
  background:var(--afmp-surface)!important;
  box-shadow:none!important;
}
body.afm-live .hero h1{margin:5px 0 7px!important;font-size:31px!important;letter-spacing:-.03em!important}
body.afm-live .hero p{font-size:11px!important;color:var(--afmp-muted)!important}
body.afm-live .lock,
body.afm-live .algo,
body.afm-live .fixture{
  border:1px solid var(--afmp-line)!important;
  border-radius:16px!important;
  background:var(--afmp-surface)!important;
}
body.afm-live .lock p,
body.afm-live .algo li{font-size:10px!important;color:var(--afmp-muted)!important}
body.afm-live .fixture-head{padding:12px 14px!important;border-bottom:1px solid var(--afmp-line)!important}
body.afm-live .fixture-head strong{font-size:13px!important}
body.afm-live .fixture-head small{font-size:9px!important}
body.afm-live .players{grid-template-columns:1fr 1fr!important}
body.afm-live .player{
  min-height:74px!important;
  padding:11px 13px!important;
  border-bottom:1px solid var(--afmp-line)!important;
}
body.afm-live .player strong{font-size:12px!important}
body.afm-live .player small{font-size:9px!important;color:var(--afmp-muted)!important}
body.afm-live .vote{font-size:22px!important;color:var(--afmp-gold)!important}
body.afm-live .confidence{font-size:8px!important}
body.afm-live .preview{
  border-color:rgba(225,184,77,.28)!important;
  background:var(--afmp-gold-soft)!important;
  color:#efca64!important;
}
body.afm-live .bottom{
  background:rgba(5,11,18,.94)!important;
  border-top:1px solid var(--afmp-line)!important;
  backdrop-filter:blur(16px);
}
body.afm-live .bottom a{color:var(--afmp-muted)!important;font-size:9px!important}
body.afm-live .bottom a.active{color:var(--afmp-text)!important}

/* Shared bottom navigation */
body.afm-premium .club-bottom-nav,
body.afm-premium .section-bottom-nav{
  background:rgba(5,11,18,.94)!important;
  border-top:1px solid var(--afmp-line)!important;
  backdrop-filter:blur(16px)!important;
}
body.afm-premium .club-bottom-nav a,
body.afm-premium .section-bottom-nav a,
body.afm-premium .section-bottom-nav button{color:var(--afmp-muted)!important}
body.afm-premium .club-bottom-nav .active,
body.afm-premium .section-bottom-nav .active{color:var(--afmp-text)!important}

/* Mobile */
@media(max-width:700px){
  body.afm-premium .shell{padding:14px 10px 92px!important}
  body.afm-home .topbar{height:64px!important;padding:0 10px!important;gap:8px!important}
  body.afm-home .brand-logo{width:42px!important;height:42px!important}
  body.afm-home .home-welcome{padding:14px!important;margin:8px 0 16px!important}
  body.afm-home .home-welcome-copy strong{font-size:21px!important}
  body.afm-home .home-club-card{padding:14px!important}
  body.afm-home .home-club-top{grid-template-columns:58px minmax(0,1fr)!important;gap:11px!important}
  body.afm-home .home-club-top img,
  body.afm-home .home-club-fallback{width:58px!important;height:58px!important}
  body.afm-home .home-club-copy strong{font-size:23px!important}
  body.afm-home .home-club-open{grid-column:1/-1!important}
  body.afm-home .home-kpis{grid-template-columns:1fr 1fr!important}
  body.afm-home .home-actions{grid-template-columns:1fr 1fr!important}
  body.afm-home .home-actions a{font-size:10px!important}
  body.afm-home .manager-status-grid{grid-template-columns:1fr 1fr!important}
  body.afm-lineup .page{padding:12px 10px 28px!important}
  body.afm-lineup .top{grid-template-columns:auto minmax(0,1fr) auto!important}
  body.afm-lineup .title{font-size:10px!important}
  body.afm-lineup .hero h1{font-size:29px!important}
  body.afm-lineup .timing{grid-template-columns:1fr 1fr!important}
  body.afm-lineup .slot{width:67px!important}
  body.afm-lineup .bubble{width:55px!important;height:55px!important}
  body.afm-lineup .bench-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important}
  body.afm-lineup .bench-slot{min-height:84px!important}
  body.afm-manager .drawer{width:100%!important}
  body.afm-manager .brand{padding:12px 14px!important}
  body.afm-manager .block{padding:13px 14px!important}
  body.afm-manager nav{padding:8px 8px 18px!important}
  body.afm-manager nav a{min-height:52px!important;font-size:13px!important}
  body.afm-club .club-hero{padding:17px!important}
  body.afm-club .club-identity img,
  body.afm-club .club-big-mark{width:68px!important;height:68px!important}
  body.afm-club .club-identity h1{font-size:28px!important}
  body.afm-club .club-metrics{grid-template-columns:1fr 1fr!important}
  body.afm-club .club-links{grid-template-columns:1fr 1fr!important}
  body.afm-roster .subpage-head{padding:15px!important}
  body.afm-roster .subpage-head h1{font-size:27px!important}
  body.afm-roster .roster-summary{grid-template-columns:1fr 1fr!important}
  body.afm-roster .player-row{min-height:68px!important}
  body.afm-roster .player-row>img,
  body.afm-roster .player-avatar{width:46px!important;height:46px!important}
  body.afm-roster .player-row .player-stats-mini{grid-template-columns:repeat(3,31px)!important}
  body.afm-competition .competition-hero{padding:16px!important}
  body.afm-competition .competition-hero h1{font-size:27px!important}
  body.afm-competition .competition-body{padding:8px!important}
  body.afm-competition .standings td{padding-top:10px!important;padding-bottom:10px!important}
  body.afm-live .players{grid-template-columns:1fr!important}
}
@media(max-width:380px){
  body.afm-lineup .timing{grid-template-columns:1fr!important}
  body.afm-lineup .timing>div+div{border-left:0!important;border-top:1px solid var(--afmp-line)!important}
  body.afm-lineup .bench-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.afm-home .home-actions{grid-template-columns:1fr!important}
}

/* HOME V2 — club-first dashboard */
body.afm-home .home-v2-club{margin-top:8px!important}
body.afm-home .home-v2-switchbar{
  display:none!important;
}
body.afm-home .home-v2-switchbar>div:first-child{min-width:120px}
body.afm-home .home-v2-clubcount{
  display:block;margin-top:3px;color:var(--afmp-muted);font-size:9px
}
body.afm-home .home-v2-switchbar .club-picker-controls{
  width:min(100%,520px);
  grid-template-columns:40px minmax(0,1fr) 40px!important;
}
body.afm-home .home-v2-switchbar .club-switch{height:44px!important}
body.afm-home .home-v2-switchbar select{height:44px!important;min-height:44px!important;font-size:13px!important}
body.afm-home .home-v2-card{overflow:hidden}
body.afm-home .home-v2-match{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.42fr);
  gap:10px;margin:14px 0 0;
}
body.afm-home .home-v2-match>div{
  min-width:0;padding:14px 15px;border-radius:15px;background:var(--afmp-surface-2)
}
body.afm-home .home-v2-match>div small{
  display:block;color:var(--afmp-muted);font-size:8px;font-weight:850;letter-spacing:.1em
}
body.afm-home .home-v2-match>div strong{
  display:block;margin-top:6px;color:var(--afmp-text);font-size:17px;line-height:1.25;letter-spacing:-.01em
}
body.afm-home .home-v2-match>div strong span{color:var(--afmp-gold);font-size:10px;text-transform:uppercase}
body.afm-home .home-v2-match>div em{
  display:block;margin-top:5px;color:var(--afmp-muted);font-size:9px;font-style:normal
}
body.afm-home .home-v2-match>a{
  min-height:92px;padding:13px 14px;border-radius:15px;
  background:linear-gradient(180deg,#efca65,#dba52f);color:#071019;
  text-decoration:none;display:grid;grid-template-columns:1fr auto;
  align-content:center;column-gap:8px;box-shadow:0 12px 30px rgba(225,184,77,.12)
}
body.afm-home .home-v2-match>a small{
  grid-column:1/-1;font-size:8px;font-weight:900;letter-spacing:.1em;opacity:.7
}
body.afm-home .home-v2-match>a b{margin-top:5px;font-size:14px;line-height:1.15}
body.afm-home .home-v2-match>a span{align-self:end;font-size:22px}
body.afm-home .home-v2-match>a.is-done{
  background:rgba(101,211,161,.08)!important;color:#8ce0ba!important;
  border:1px solid rgba(101,211,161,.22)!important;box-shadow:none!important
}
body.afm-home .home-v2-match>a.is-neutral{
  background:var(--afmp-surface-2)!important;color:#cbd4da!important;
  border:1px solid var(--afmp-line)!important;box-shadow:none!important
}
body.afm-home .home-v3-status{
  display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px
}
body.afm-home .home-v3-status a{
  min-width:0;min-height:68px;padding:10px 11px;border-radius:13px;
  background:var(--afmp-surface-2);text-decoration:none;color:inherit;
  display:flex;flex-direction:column;justify-content:center
}
body.afm-home .home-v3-status small{
  color:var(--afmp-muted);font-size:7px;font-weight:900;letter-spacing:.08em
}
body.afm-home .home-v3-status b{
  margin-top:4px;color:var(--afmp-text);font-size:17px;line-height:1.1;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
body.afm-home .home-v3-status span{
  margin-top:4px;color:var(--afmp-muted);font-size:8px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
body.afm-home .home-v3-status a:last-child{
  border:1px solid rgba(225,184,77,.16);background:rgba(225,184,77,.045)
}
body.afm-home .home-v3-status a:last-child b{color:var(--afmp-gold);font-size:13px}
body.afm-home .home-v2-actions{
  grid-template-columns:repeat(4,1fr)!important;
  margin-top:9px!important
}
body.afm-home .home-v2-actions a{
  min-height:42px!important;font-size:10px!important;
  border-color:var(--afmp-line)!important;background:transparent!important;color:#cdd6dc!important
}
body.afm-home .home-v2-actions a:first-child{
  border-color:var(--afmp-line)!important;background:transparent!important;color:#cdd6dc!important
}
body.afm-home .home-v2-legacy-match{display:none!important}
body.afm-home .home-v2-secondary{
  margin-top:16px;padding-top:12px;border-top:1px solid var(--afmp-line);opacity:.92
}
body.afm-home .home-v2-secondary .competitions-compact{margin-top:12px!important}
body.afm-home .home-priority{margin-top:10px!important}
body.afm-home .home-priority.show{display:flex!important}
body.afm-home .manager-status{margin-top:10px!important}
@media(max-width:700px){
  body.afm-home .home-welcome{display:none!important}
  body.afm-home .brand-row{min-width:0!important;flex:1!important}
  body.afm-home .brand-row>div{min-width:0!important}
  body.afm-home .brand-row{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-width:0!important;flex:1 1 auto!important}
  body.afm-home .brand-row>div{display:block!important;min-width:0!important}
  body.afm-home .brand-row strong{display:block!important;max-width:none!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important;line-height:1.1!important}
  body.afm-home .brand-row small{display:block!important;max-width:none!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:8px!important;line-height:1.2!important;color:var(--afmp-muted)!important;margin-top:2px!important}
  body.afm-home .brand-row:after{content:"⌄";margin-left:0;color:var(--afmp-gold);font-size:11px;font-weight:900}
  body.afm-home .home-v2-switchbar{display:none!important}
  body.afm-home .home-welcome{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:10px!important;margin:8px 0 10px!important;padding:11px 12px!important
  }
  body.afm-home .home-welcome>div:last-child{grid-column:auto!important;width:auto!important}
  body.afm-home .home-welcome-meta{display:flex!important;width:auto!important;gap:6px!important}
  body.afm-home .home-manager-link{display:none!important}
  body.afm-home .home-refresh{width:38px!important;min-width:38px!important;height:38px!important}
  body.afm-home .home-season-pill{min-height:38px!important;font-size:9px!important}
  body.afm-home .home-refresh-time{font-size:7px!important}
  body.afm-home .home-v2-switchbar{display:none!important;margin-bottom:0!important}
  body.afm-home .home-v2-switchbar>div:first-child{display:none}
  body.afm-home .home-v2-switchbar .club-picker-controls{width:100%;grid-template-columns:42px minmax(0,1fr) 42px!important}
  body.afm-home .home-v2-switchbar .club-switch,
  body.afm-home .home-v2-switchbar select{height:48px!important;min-height:48px!important}
  body.afm-home .home-v2-card{padding:13px!important}
  body.afm-home .home-club-controls{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important}
  body.afm-home .home-club-controls .home-club-open{grid-column:auto!important;min-width:82px!important;margin:0!important}
  body.afm-home .home-club-switch-btn{min-height:44px!important;font-size:10px!important}
  body.afm-home .home-club-open{min-height:44px!important}
  body.afm-home .home-v2-match{grid-template-columns:1fr;gap:8px;margin-top:10px}
  body.afm-home .home-v2-match>div{padding:12px 13px}
  body.afm-home .home-v2-match>div strong{font-size:15px}
  body.afm-home .home-v2-match>a{
    min-height:66px;grid-template-columns:1fr auto;padding:10px 13px
  }
  body.afm-home .home-v2-match>a b{font-size:13px}
  body.afm-home .home-v3-status{grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:8px!important}
  body.afm-home .home-v3-status a{min-height:60px!important;padding:9px 10px!important}
  body.afm-home .home-v3-status a:last-child{grid-column:1/-1!important;min-height:56px!important}
  body.afm-home .home-v3-status b{font-size:15px!important}
  body.afm-home .home-v3-status a:last-child b{font-size:12px!important}
  body.afm-home .home-v2-actions{grid-template-columns:1fr 1fr!important;gap:6px!important}
  body.afm-home .home-v2-actions a{min-height:40px!important}
  body.afm-home .home-v2-secondary{margin-top:14px;padding-top:12px}
  body.afm-home .manager-status-head{margin-bottom:6px}
  body.afm-home .home-welcome{display:none!important}
}