*,
*::before,
*::after { box-sizing: border-box; }

html { width: 100%; overflow-x: clip; }
body { width: 100%; overflow-x: hidden; }

img, svg, video, canvas { max-width: 100%; height: auto; }
p, h1, h2, h3, li, a, strong, span, button, summary { overflow-wrap: anywhere; }

:root{
  --team-max: 1120px;

  --radius: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --brand: #1e40af;
  --brand-2: #2563eb;
  --brand-soft: rgba(37,99,235,0.10);

  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;

  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --card: #ffffff;

  --border: rgba(15,23,42,0.10);
  --border-soft: rgba(15,23,42,0.06);

  --shadow: 0 12px 28px rgba(2,6,23,0.08);
  --shadow-soft: 0 10px 22px rgba(2,6,23,0.06);

  --positive: #15803d;
  --warn: #b45309;
  --negative: #b91c1c;
  --neutral: #334155;

  --team-section-pad-y: 14px;
  --team-section-gap: 10px;
  --team-card-pad: 12px;
  --team-head-max: 760px;
}

[data-theme="dark"]{
  --text: #e2e8f0;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;

  --bg: #0f172a;
  --bg-soft: #111c2e;
  --card: #172131;

  --border: rgba(96,165,250,0.16);
  --border-soft: rgba(148,163,184,0.08);

  --shadow: 0 16px 32px rgba(2,6,23,0.28);
  --shadow-soft: 0 10px 24px rgba(2,6,23,0.24);

  --positive: #4ade80;
  --warn: #fbbf24;
  --negative: #f87171;
  --neutral: #cbd5e1;
}

.container{
  max-width: var(--team-max);
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}

body.fs-team-page{
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

/* =========================
   HERO
========================= */

.team-hero{
  background:
    radial-gradient(1200px 360px at 50% -10%, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(to right, var(--brand), var(--brand-2));
  color: #fff;
  padding: 60px 0 28px;
  text-align: center;
  overflow: hidden;
}

.team-hero__card{
  border-radius: var(--radius);
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.team-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  font-weight: 700;
  font-size: .92rem;
}

.team-hero h1{
  margin: 10px auto 8px;
  font-size: 2.2rem;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 12px rgba(2,6,23,0.18);
}

.team-hero__subtitle{
  max-width: 860px;
  margin: 0 auto 14px;
  font-size: 1.02rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.90);
}

.team-hero__meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 14px;
}

.team-chip{
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
}

.team-hero__stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.team-hero-stat{
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.team-hero-stat span{
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: .78rem;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.team-hero-stat strong{
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

/* =========================
   FORM STRIP
========================= */

.team-form-strip{
  margin-top: 12px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
}

.team-form-strip__label{
  color: rgba(255,255,255,0.95);
  font-weight: 800;
  font-size: .92rem;
}

.team-form-strip__badges{
  display: inline-flex;
  gap: 8px;
}

.team-form-badge{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .95rem;
  color: #fff;
  box-shadow: 0 6px 14px rgba(2,6,23,0.14);
  border: 1px solid rgba(255,255,255,0.14);
}

.team-form-badge--win{
  background: rgba(34, 197, 94, 0.30);
  color: #fff;
}

.team-form-badge--draw{
  background: rgba(245, 158, 11, 0.30);
  color: #fff;
}

.team-form-badge--loss{
  background: rgba(239, 68, 68, 0.30);
  color: #fff;
}

/* =========================
   SECTIONS / HEADERS
========================= */

.team-section{
  padding: var(--team-section-pad-y) 0;
  background: var(--bg);
}

.team-section + .team-section{
  border-top: 1px solid var(--border-soft);
}

.team-section--compact-top{
  padding-top: 8px;
  padding-bottom: 4px;
}

.team-section--nav{
  padding-top: 12px;
  padding-bottom: 12px;
}

.team-section--seo{
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 18px;
  padding-bottom: 18px;
}

.team-section > .container{
  display: grid;
  gap: var(--team-section-gap);
}

.team-section__head{
  max-width: var(--team-head-max);
  margin: 0 auto 4px;
  text-align: left;
}

.team-section__head h2{
  margin: 0 0 3px;
  font-size: clamp(1.12rem, 1.5vw, 1.34rem);
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -0.015em;
}

.team-section__head p{
  margin: 0;
  font-size: .88rem;
  line-height: 1.42;
  color: var(--muted);
}

/* =========================
   COMMON CARDS
========================= */

.team-kpi-card,
.team-chart-card,
.team-pick-card,
.fs-next-match-card,
.fs-pick-card,
.team-nav-card,
.team-mini-insight,
.fs-faq-item,
.team-page-match-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--team-card-pad);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.team-chart-card{
  padding-top: 10px;
}

.team-page-match-card{
  max-width: 980px;
  margin: 0 auto;
}

/* =========================
   MINI INSIGHTS
========================= */

.team-mini-insights-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 8px;
}

.team-mini-insight{
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.team-mini-insight::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  height: 100%;
  background: var(--border);
  border-radius: 3px 0 0 3px;
}

.team-mini-insight--positive::before{ background: var(--positive); }
.team-mini-insight--warn::before{ background: var(--warn); }
.team-mini-insight--negative::before{ background: var(--negative); }
.team-mini-insight--neutral::before{ background: var(--neutral); }

.team-mini-insight__title{
  display: block;
  font-size: .72rem;
  color: var(--muted-2);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

.team-mini-insight__value{
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}

.team-mini-insight--positive .team-mini-insight__value{ color: var(--positive); }
.team-mini-insight--negative .team-mini-insight__value{ color: var(--negative); }
.team-mini-insight--warn .team-mini-insight__value{ color: var(--warn); }

.team-mini-insight__hint{
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  line-height: 1.3;
  font-size: .75rem;
}

.team-mini-insight--positive{
  border-color: rgba(22,163,74,.18);
  box-shadow: 0 12px 24px rgba(22,163,74,.08);
}
.team-mini-insight--warn{
  border-color: rgba(245,158,11,.20);
  box-shadow: 0 12px 24px rgba(245,158,11,.08);
}
.team-mini-insight--negative{
  border-color: rgba(220,38,38,.18);
  box-shadow: 0 12px 24px rgba(220,38,38,.08);
}
.team-mini-insight--neutral{
  border-color: rgba(51,65,85,.14);
}

/* =========================
   KPI
========================= */

.team-kpi-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}

.team-kpi-card{
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: relative;
}

.team-kpi-card span,
.team-kpi-card__label{
  display: block;
  color: var(--muted-2);
  margin-bottom: 2px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
  line-height: 1.2;
}

.team-kpi-card strong,
.team-kpi-card__value{
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.06;
  color: var(--text);
}

.team-kpi-card__label-row{
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

.team-kpi-card__label{
  min-width: 0;
}

.team-kpi-card__info{
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid rgba(59,130,246,.35);
  border-radius: 999px;
  background: rgba(59,130,246,.08);
  color: #1d4ed8;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  padding: 0;
}

.team-kpi-card__info::after,
.team-kpi-card__info::before{
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease;
}

.team-kpi-card__info::after{
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(260px, calc(100vw - 32px));
  padding: .7rem .8rem;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 10px 30px rgba(2,6,23,.25);
}

.team-kpi-card__info::before{
  content: "";
  position: absolute;
  right: 6px;
  bottom: calc(100% + 4px);
  border-width: 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.team-kpi-card__info:hover::after,
.team-kpi-card__info:hover::before,
.team-kpi-card__info:focus-visible::after,
.team-kpi-card__info:focus-visible::before{
  opacity: 1;
  visibility: visible;
}

.team-kpi-card__info:focus-visible{
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.team-kpi-card:hover,
.team-kpi-card:focus-within{
  z-index: 20;
}

/* =========================
   NEXT MATCH / PROBA BLOCKS
========================= */

.fs-next-match-card__meta{
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 8px;
}

.fs-next-match-card h2{
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.3;
}

.fs-proba-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}

.fs-proba-grid > div,
.fs-pick-card__metrics > div{
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.fs-proba-grid span,
.fs-pick-card__metrics span{
  display: block;
  color: var(--muted-2);
  font-size: .75rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
}

.fs-proba-grid strong,
.fs-pick-card__metrics strong{
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

/* =========================
   CHARTS
========================= */

.team-chart-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.team-chart-card__header{
  margin-bottom: 2px;
}

.team-chart-card__header h3{
  margin: 0 0 2px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
}

.team-chart-card__header p{
  margin: 0;
  color: var(--muted-2);
  line-height: 1.35;
  font-size: .80rem;
}

.team-chart{
  position: relative;
  min-height: 260px;
  content-visibility: auto;
  contain-intrinsic-size: 290px;
}

.team-confidence-zones__label{
  position: absolute;
  transform: translateY(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  background: rgba(255,255,255,.88);
  box-shadow: 0 6px 16px rgba(15,23,42,.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}

.team-confidence-zones__label--high{
  color: #991b1b;
  border: 1px solid rgba(239,68,68,.38);
}

.team-confidence-zones__label--mid{
  color: #92400e;
  border: 1px solid rgba(245,158,11,.42);
}

.team-confidence-zones__label--low{
  color: #166534;
  border: 1px solid rgba(34,197,94,.40);
}

/* =========================
   PICKS
========================= */

.fs-pick-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 8px;
}

.fs-pick-card{
  position: relative;
}

.fs-pick-card__title{
  font-weight: 900;
  font-size: .89rem;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.fs-pick-card__metrics{
  display: grid;
  gap: 6px;
}

.fs-pick-card__metrics > div{
  padding: 8px 10px;
  border-radius: 10px;
}

.fs-pick-card__metrics > div:first-child strong{
  color: var(--positive);
  font-size: 1.1rem;
  font-weight: 900;
}

/* =========================
   INSIGHTS / SEO / FAQ
========================= */

.team-insights{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  line-height: 1.5;
  color: var(--muted);
}

.team-insights li{
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .88rem;
}

.team-seo-copy{
  max-width: 920px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
  font-size: .92rem;
  padding: 12px 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.team-seo-copy p{
  margin: 0 0 10px;
}

.team-seo-copy p:last-child{
  margin-bottom: 0;
}

.team-faq-block{
  padding: 20px 0 36px;
  background: var(--bg);
}

.team-faq-block h2{
  margin: 0 0 12px;
  text-align: center;
  color: var(--text);
  font-size: 1.4rem;
}

.fs-faq-item{
  padding: 2px 14px;
  margin-bottom: 8px;
}

.fs-faq-item summary{
  cursor: pointer;
  font-weight: 800;
  padding: 12px 0;
  list-style: none;
  color: var(--text);
  font-size: .92rem;
}

.fs-faq-item summary::-webkit-details-marker{
  display: none;
}

.fs-faq-item__content{
  padding: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
  font-size: .88rem;
}

/* =========================
   NAV
========================= */

.team-nav-grid{
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.team-nav-card{
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .18s ease, border-color .18s ease;
}

.team-nav-card:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 14px 28px rgba(2,6,23,.08);
}

.team-nav-card__icon{
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 8px;
  background: rgba(37,99,235,.08);
}

.team-nav-card h3{
  margin: 0 0 4px;
  color: var(--text);
  font-size: .95rem;
}

.team-nav-card p{
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.45;
  font-size: .88rem;
}

.team-nav-card__cta{
  color: var(--brand);
  font-weight: 800;
}

/* =========================
   MATCH CARD
========================= */

.team-page-match-card .match-date{
  margin-bottom: 10px;
}

.team-page-match-card .match-insight-block{
  margin-top: 14px;
}

.team-page-match-card .res-reading-compact{
  margin-top: 10px;
}

.team-context-watch{
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  background: rgba(248, 250, 252, .86);
  color: #334155;
}

.team-context-watch--warning{
  border-color: rgba(220, 38, 38, .32);
  background: rgba(254, 226, 226, .62);
  color: #7f1d1d;
}

.team-context-watch--caution{
  border-color: rgba(217, 119, 6, .34);
  background: rgba(254, 243, 199, .66);
  color: #78350f;
}

.team-context-watch__head{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.team-context-watch__title{
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.team-context-watch__chips{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.team-context-watch__chip{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.2;
  color: #334155;
  background: rgba(226, 232, 240, .7);
}

.team-context-watch__chip--warning{
  color: #7f1d1d;
  background: rgba(248, 113, 113, .22);
}

.team-context-watch__chip--caution{
  color: #78350f;
  background: rgba(245, 158, 11, .24);
}

.team-context-watch__chip--info{
  color: #1e3a8a;
  background: rgba(147, 197, 253, .22);
}

.team-context-watch__text{
  margin: 7px 0 0;
  color: inherit;
  font-size: .84rem;
  line-height: 1.45;
}

.team-page-match-card .res-reading-compact__overview{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-page-match-card .res-reading-viz-card--picks{
  grid-column: 1 / -1;
}

.team-page-match-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.team-page-match-card--empty{
  text-align: center;
}

.fs-empty{
  color: var(--muted);
  text-align: center;
}

/* =========================
   ADS
========================= */

.home-ad{
  padding: 8px 0 22px;
  background: var(--bg);
  max-width: 100%;
  overflow-x: clip;
}

.home-ad--inline{
  margin: 20px 0 28px;
}

.team-section + .home-ad--inline{
  margin-top: 18px;
}

.fs-team-ad{
  width: min(100%, 980px);
  max-width: 100%;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  padding: 12px 12px 10px;
  min-height: 120px;
}

.fs-team-ad--mid{
  min-height: 140px;
}

.fs-team-ad .adsbygoogle,
.fs-team-ad .adsbygoogle > iframe{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  min-height: clamp(220px, 29vw, 280px);
  margin: 0 auto !important;
  overflow: hidden !important;
}

.fs-ad-label{
  display: inline-block;
  margin-bottom: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.user-no-ads .home-ad{
  display: none !important;
}

/* =========================
   DARK MODE FIXES
========================= */

[data-theme="dark"] body.fs-team-page{
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .team-section,
[data-theme="dark"] .home-ad,
[data-theme="dark"] .team-faq-block{
  background: var(--bg);
}

[data-theme="dark"] .team-section--seo{
  background: #101a2b;
  border-top-color: rgba(96,165,250,0.14);
  border-bottom-color: rgba(96,165,250,0.14);
}

[data-theme="dark"] .team-section + .team-section{
  border-top-color: rgba(148,163,184,0.08);
}

[data-theme="dark"] .team-kpi-card,
[data-theme="dark"] .team-nav-card,
[data-theme="dark"] .fs-pick-card,
[data-theme="dark"] .team-seo-copy,
[data-theme="dark"] .fs-faq-item,
[data-theme="dark"] .team-insights li,
[data-theme="dark"] .team-chart-card,
[data-theme="dark"] .team-page-match-card,
[data-theme="dark"] .team-mini-insight,
[data-theme="dark"] .fs-next-match-card{
  background:
    linear-gradient(180deg, rgba(23,33,49,0.98), rgba(20,28,43,0.98));
  border-color: rgba(96,165,250,0.14);
  box-shadow: 0 10px 26px rgba(2,6,23,0.24);
}

[data-theme="dark"] .team-insights li,
[data-theme="dark"] .fs-proba-grid > div,
[data-theme="dark"] .fs-pick-card__metrics > div{
  background: #1a2637;
  border-color: rgba(96,165,250,0.12);
}

[data-theme="dark"] .team-nav-card__icon{
  background: rgba(96,165,250,0.12);
  color: #93c5fd;
}

[data-theme="dark"] .team-section__head h2,
[data-theme="dark"] .team-kpi-card strong,
[data-theme="dark"] .team-kpi-card__value,
[data-theme="dark"] .team-chart-card__header h3,
[data-theme="dark"] .team-nav-card h3,
[data-theme="dark"] .fs-faq-item summary,
[data-theme="dark"] .fs-next-match-card h2,
[data-theme="dark"] .fs-proba-grid strong,
[data-theme="dark"] .fs-pick-card__metrics strong,
[data-theme="dark"] .fs-pick-card__title,
[data-theme="dark"] .team-faq-block h2{
  color: #e2e8f0;
}

[data-theme="dark"] .team-section__head p,
[data-theme="dark"] .team-nav-card p,
[data-theme="dark"] .team-seo-copy,
[data-theme="dark"] .team-seo-copy p,
[data-theme="dark"] .fs-faq-item__content,
[data-theme="dark"] .team-insights,
[data-theme="dark"] .team-insights li,
[data-theme="dark"] .fs-empty,
[data-theme="dark"] .fs-next-match-card__meta{
  color: #94a3b8;
}

[data-theme="dark"] .team-mini-insight__title,
[data-theme="dark"] .team-mini-insight__hint,
[data-theme="dark"] .team-kpi-card span,
[data-theme="dark"] .team-kpi-card__label,
[data-theme="dark"] .team-chart-card__header p,
[data-theme="dark"] .fs-proba-grid span,
[data-theme="dark"] .fs-pick-card__metrics span,
[data-theme="dark"] .fs-ad-label{
  color: #9fb0c8;
}

[data-theme="dark"] .team-mini-insight--positive .team-mini-insight__value{ color: #4ade80; }
[data-theme="dark"] .team-mini-insight--negative .team-mini-insight__value{ color: #f87171; }
[data-theme="dark"] .team-mini-insight--warn .team-mini-insight__value{ color: #fbbf24; }

[data-theme="dark"] .fs-pick-card__metrics > div:first-child strong{
  color: #86efac;
}

[data-theme="dark"] .team-kpi-card__info{
  border-color: rgba(147,197,253,.30);
  background: rgba(96,165,250,.12);
  color: #bfdbfe;
}

[data-theme="dark"] .team-kpi-card__info::after{
  background: #0b1220;
  color: #e2e8f0;
  box-shadow: 0 14px 34px rgba(2,6,23,.42);
}

[data-theme="dark"] .team-kpi-card__info::before{
  border-color: #0b1220 transparent transparent transparent;
}

[data-theme="dark"] .team-kpi-card__info:focus-visible{
  outline-color: #60a5fa;
}

[data-theme="dark"] .team-confidence-zones__label{
  background: rgba(15,23,42,.78);
  box-shadow: 0 8px 20px rgba(2,6,23,.32);
}

[data-theme="dark"] .team-confidence-zones__label--high{ color: #fca5a5; }
[data-theme="dark"] .team-confidence-zones__label--mid{ color: #fcd34d; }
[data-theme="dark"] .team-confidence-zones__label--low{ color: #86efac; }

[data-theme="dark"] .fs-team-ad{
  background: rgba(15,23,42,0.55);
  border-color: rgba(96,165,250,0.14);
}

/* ApexCharts dark fixes */
[data-theme="dark"] .apexcharts-tooltip,
[data-theme="dark"] .apexcharts-xaxistooltip,
[data-theme="dark"] .apexcharts-yaxistooltip{
  background: #0f172a !important;
  border: 1px solid rgba(96,165,250,0.18) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 12px 28px rgba(2,6,23,.35) !important;
}

[data-theme="dark"] .apexcharts-tooltip-title{
  background: #111c2e !important;
  border-bottom: 1px solid rgba(96,165,250,0.14) !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .apexcharts-xaxistooltip-text,
[data-theme="dark"] .apexcharts-yaxistooltip-text,
[data-theme="dark"] .apexcharts-tooltip-text,
[data-theme="dark"] .apexcharts-tooltip-text-y-label,
[data-theme="dark"] .apexcharts-tooltip-text-y-value,
[data-theme="dark"] .apexcharts-tooltip-text-z-label,
[data-theme="dark"] .apexcharts-tooltip-text-z-value{
  fill: #e2e8f0 !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .apexcharts-legend-text{
  color: #cbd5e1 !important;
}

[data-theme="dark"] .apexcharts-text,
[data-theme="dark"] .apexcharts-xaxis text,
[data-theme="dark"] .apexcharts-yaxis text{
  fill: #94a3b8 !important;
}

[data-theme="dark"] .apexcharts-gridline{
  stroke: rgba(148,163,184,0.14) !important;
}

[data-theme="dark"] .apexcharts-xcrosshairs,
[data-theme="dark"] .apexcharts-ycrosshairs{
  fill: rgba(148,163,184,0.08) !important;
  stroke: rgba(148,163,184,0.10) !important;
}

[data-theme="dark"] .apexcharts-menu{
  background: #172131 !important;
  border: 1px solid rgba(96,165,250,0.16) !important;
  box-shadow: 0 14px 32px rgba(2,6,23,.35) !important;
}

[data-theme="dark"] .apexcharts-menu-item{
  color: #e2e8f0 !important;
}

[data-theme="dark"] .apexcharts-menu-item:hover{
  background: rgba(96,165,250,0.12) !important;
}

/* =========================
   GENERIC DARK INHERITANCE FIXES
========================= */

[data-theme="dark"] .team-page-match-card,
[data-theme="dark"] .team-page-match-card *:not(.team-form-badge):not(.team-chip):not(.team-badge){
  border-color: inherit;
}

[data-theme="dark"] .team-page-match-card p,
[data-theme="dark"] .team-page-match-card li,
[data-theme="dark"] .team-page-match-card span,
[data-theme="dark"] .team-page-match-card strong,
[data-theme="dark"] .team-page-match-card h2,
[data-theme="dark"] .team-page-match-card h3,
[data-theme="dark"] .team-page-match-card h4{
  color: inherit;
}

[data-theme="dark"] .team-page-match-card{
  color: #e2e8f0;
}

[data-theme="dark"] .team-page-match-card p,
[data-theme="dark"] .team-page-match-card li,
[data-theme="dark"] .team-page-match-card .match-date,
[data-theme="dark"] .team-page-match-card .res-reading-compact__intro,
[data-theme="dark"] .team-page-match-card .res-reading-compact__summary,
[data-theme="dark"] .team-page-match-card .res-reading-compact__meta,
[data-theme="dark"] .team-page-match-card .res-reading-viz-card__subtitle,
[data-theme="dark"] .team-page-match-card .res-reading-viz-card p{
  color: #94a3b8;
}

[data-theme="dark"] .team-page-match-card strong,
[data-theme="dark"] .team-page-match-card h2,
[data-theme="dark"] .team-page-match-card h3,
[data-theme="dark"] .team-page-match-card .match-teams,
[data-theme="dark"] .team-page-match-card .res-reading-viz-card__title,
[data-theme="dark"] .team-page-match-card .res-reading-compact__title{
  color: #e2e8f0;
}

[data-theme="dark"] .team-page-match-card .res-reading-viz-card,
[data-theme="dark"] .team-page-match-card .res-reading-compact__overview > div,
[data-theme="dark"] .team-page-match-card .match-insight-block,
[data-theme="dark"] .team-page-match-card .match-market-card,
[data-theme="dark"] .team-page-match-card .match-probability-card{
  background: #1a2637;
  border-color: rgba(96,165,250,0.12);
  box-shadow: none;
}

[data-theme="dark"] .team-page-match-card .res-reading-viz-card__label,
[data-theme="dark"] .team-page-match-card .match-market-card__label,
[data-theme="dark"] .team-page-match-card .match-probability-card__label{
  color: #9fb0c8;
}

[data-theme="dark"] .team-page-match-card .res-reading-viz-card__value,
[data-theme="dark"] .team-page-match-card .match-market-card__value,
[data-theme="dark"] .team-page-match-card .match-probability-card__value{
  color: #e2e8f0;
}

[data-theme="dark"] .team-page-match-card a:not(.cta-button){
  color: #93c5fd;
}

[data-theme="dark"] .team-page-match-card a:not(.cta-button):hover{
  color: #bfdbfe;
}

[data-theme="dark"] .team-page-match-card hr{
  border: 0;
  border-top: 1px solid rgba(148,163,184,0.10);
}

[data-theme="dark"] .team-page-match-card .team-context-watch{
  background: rgba(30, 41, 59, .76);
  border-color: rgba(148, 163, 184, .18);
  color: #cbd5e1;
}

[data-theme="dark"] .team-page-match-card .team-context-watch--warning{
  background: rgba(127, 29, 29, .34);
  border-color: rgba(248, 113, 113, .34);
  color: #fecaca;
}

[data-theme="dark"] .team-page-match-card .team-context-watch--caution{
  background: rgba(120, 53, 15, .34);
  border-color: rgba(245, 158, 11, .34);
  color: #fde68a;
}

[data-theme="dark"] .team-page-match-card .team-context-watch__chip--warning{
  color: #fee2e2;
  background: rgba(248, 113, 113, .20);
}

[data-theme="dark"] .team-page-match-card .team-context-watch__chip--caution{
  color: #fef3c7;
  background: rgba(245, 158, 11, .20);
}

[data-theme="dark"] .team-page-match-card .team-context-watch__chip--info{
  color: #dbeafe;
  background: rgba(96, 165, 250, .20);
}

[data-theme="dark"] .team-page-match-card .team-context-watch__text,
[data-theme="dark"] .team-page-match-card .team-context-watch__title{
  color: inherit;
}

/* =========================
   CTA / BUTTON TUNING
========================= */

.team-page-match-links .cta-button{
  min-height: 42px;
}

[data-theme="dark"] .team-page-match-links .cta-button,
[data-theme="dark"] .team-page-match-card .cta-button{
  box-shadow: none;
}

[data-theme="dark"] .team-page-match-links .cta-button--secondary,
[data-theme="dark"] .team-page-match-card .cta-button--secondary{
  background: rgba(96,165,250,0.10);
  border-color: rgba(96,165,250,0.20);
  color: #dbeafe;
}

[data-theme="dark"] .team-page-match-links .cta-button--secondary:hover,
[data-theme="dark"] .team-page-match-card .cta-button--secondary:hover{
  background: rgba(96,165,250,0.14);
  border-color: rgba(96,165,250,0.28);
  color: #eff6ff;
}

/* =========================
   INTERACTIONS
========================= */

.team-nav-card:focus-visible,
.fs-faq-item summary:focus-visible,
.team-kpi-card__info:focus-visible{
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

[data-theme="dark"] .team-nav-card:hover{
  box-shadow: 0 14px 28px rgba(2,6,23,.26);
}

[data-theme="dark"] .team-kpi-card:hover,
[data-theme="dark"] .team-nav-card:hover,
[data-theme="dark"] .team-mini-insight:hover,
[data-theme="dark"] .team-chart-card:hover,
[data-theme="dark"] .fs-pick-card:hover{
  border-color: rgba(96,165,250,0.22);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px){
  .team-mini-insights-grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .fs-pick-grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .team-nav-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 900px){
  .team-hero{
    padding: 46px 0 22px;
  }

  .team-hero h1{
    font-size: 1.9rem;
  }

  .team-hero__subtitle{
    font-size: .97rem;
  }

  .team-hero__stats{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .team-kpi-grid,
  .team-chart-grid{
    grid-template-columns: 1fr;
  }

  .team-section__head{
    max-width: 100%;
  }
}

@media (max-width: 760px){
  .container{
    padding: 0 16px;
  }

  .team-section{
    padding: 12px 0;
  }

  .team-section--seo{
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .team-mini-insights-grid,
  .fs-pick-grid,
  .team-nav-grid,
  .team-insights{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .team-page-match-card .res-reading-compact__overview{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .team-context-watch{
    padding: 10px;
  }

  .team-context-watch__head,
  .team-context-watch__chips{
    align-items: flex-start;
  }

  .team-page-match-links{
    gap: 10px;
  }

  .team-page-match-links .cta-button{
    width: 100%;
    justify-content: center;
  }

  .team-confidence-zones__label{
    font-size: .72rem;
    padding: 4px 8px;
  }
}

@media (max-width: 560px){
  .team-hero{
    padding: 40px 0 18px;
  }

  .team-hero__card{
    padding: 16px 14px;
  }

  .team-badge{
    font-size: .84rem;
    padding: 7px 12px;
  }

  .team-hero h1{
    font-size: 1.56rem;
    line-height: 1.12;
    margin: 10px auto 6px;
  }

  .team-hero__subtitle{
    font-size: .92rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .team-chip{
    font-size: .76rem;
  }

  .team-hero__stats{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
  }

  .team-hero-stat{
    padding: 9px 10px;
  }

  .team-hero-stat strong{
    font-size: 1.16rem;
  }

  .team-form-strip{
    width: 100%;
    border-radius: 24px;
    padding: 10px 12px;
    gap: 8px;
  }

  .team-form-strip__badges{
    flex-wrap: wrap;
    justify-content: center;
  }

  .team-form-badge{
    width: 30px;
    height: 30px;
    font-size: .9rem;
  }

  .team-mini-insights-grid,
  .team-kpi-grid,
  .team-nav-grid,
  .team-insights,
  .fs-pick-grid{
    grid-template-columns: 1fr;
  }

  .team-section__head{
    text-align: left;
    margin-bottom: 2px;
  }

  .team-section__head h2{
    font-size: 1.05rem;
  }

  .team-section__head p{
    font-size: .84rem;
  }

  .team-mini-insight__value{
    font-size: 1.28rem;
  }

  .team-kpi-card strong,
  .team-kpi-card__value{
    font-size: 1.26rem;
  }

  .fs-proba-grid{
    grid-template-columns: 1fr;
  }

  .team-chart{
    min-height: 220px;
  }

  .team-seo-copy{
    padding: 11px 12px;
    font-size: .88rem;
  }

  .fs-faq-item{
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-ad--inline{
    margin: 14px 0 18px;
  }

  .fs-team-ad{
    border-radius: 14px;
    padding: 10px;
  }

  .team-confidence-zones__label{
    display: none;
  }
}

/* =========================
   VERY SMALL DEVICES
========================= */

@media (max-width: 380px){
  .container{
    padding: 0 12px;
  }

  .team-hero h1{
    font-size: 1.42rem;
  }

  .team-hero__stats{
    grid-template-columns: 1fr;
  }

  .team-form-strip{
    padding: 10px;
  }

  .team-badge,
  .team-chip{
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }
}

[data-theme="dark"] .apexcharts-canvas,
[data-theme="dark"] .apexcharts-svg {
  background: transparent !important;
}

[data-theme="dark"] .apexcharts-series-markers .apexcharts-marker {
  stroke: #1f2937 !important;
}

[data-theme="light"] .apexcharts-series-markers .apexcharts-marker,
html:not([data-theme="dark"]) .apexcharts-series-markers .apexcharts-marker {
  stroke: #ffffff !important;
}

.team-hero__card h1 {
  text-align: center;
  width: 100%;
}

.team-hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-hero__card h1 {
  margin-left: auto;
  margin-right: auto;
}
