:root {
  --bg: #070a12;
  --panel: rgba(13, 20, 34, .92);
  --panel-2: rgba(10, 16, 27, .94);
  --panel-3: rgba(12, 27, 24, .88);
  --ink: #f3f7fb;
  --text: #cbd7e4;
  --muted: #8393a7;
  --line: rgba(143, 168, 196, .18);
  --line-strong: rgba(142, 229, 174, .30);
  --green: #8ee5ae;
  --green-deep: #1c8b5a;
  --cyan: #4cc9df;
  --orange: #ff7648;
  --rose: #c95478;
  --shadow: 0 22px 70px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .04);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { min-height: 100%; font-size: 14px; }

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(6, 18, 18, .78), rgba(7, 10, 18, 1) 360px),
    radial-gradient(860px 460px at 12% 0%, rgba(20, 145, 92, .18), transparent 62%),
    radial-gradient(720px 420px at 100% 12%, rgba(76, 201, 223, .10), transparent 64%),
    #070a12;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(216, 255, 232, .20) calc(50% - 1px), rgba(216, 255, 232, .20) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 46%, transparent 0 108px, rgba(216, 255, 232, .18) 109px 111px, transparent 112px),
    linear-gradient(90deg, transparent 6%, rgba(216, 255, 232, .12) 6.1%, rgba(216, 255, 232, .12) 14%, transparent 14.1%, transparent 86%, rgba(216, 255, 232, .12) 86.1%, rgba(216, 255, 232, .12) 94%, transparent 94.1%);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }

.fb-shell {
  width: min(1280px, calc(100vw - 34px));
  margin: 18px auto 38px;
}

.fb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.fb-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.fb-brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(142, 229, 174, .18), rgba(76, 201, 223, .14));
  filter: drop-shadow(0 0 8px rgba(142, 229, 174, .16));
}

.fb-brand strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .2px;
}

.fb-brand em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.fb-nav,
.fb-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 12, 22, .76);
}

.fb-nav { border-radius: 999px; }

.fb-nav a,
.fb-mode button,
.fb-mode a {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.fb-nav a:hover,
.fb-mode button:hover,
.fb-mode a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }

.fb-nav a.active,
.fb-mode button.active {
  color: #06110d;
  background: linear-gradient(160deg, #dfffe8, var(--green));
}

.fb-mode .fb-pending {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.fb-mode .fb-pending span {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(203, 215, 228, .30);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: fb-spin .9s linear infinite;
}

@keyframes fb-spin {
  to { transform: rotate(360deg); }
}

.fb-app {
  display: grid;
  gap: 14px;
}

.fb-filters {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) 160px auto auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 26, 43, .92), rgba(11, 17, 30, .92));
  box-shadow: var(--shadow);
}

.fb-mode-view {
  display: grid;
  gap: 14px;
}

.fb-postmatch-view {
  display: grid;
  gap: 14px;
}

.fb-postmatch-toolbar {
  grid-template-columns: minmax(420px, 1.3fr) repeat(4, minmax(130px, .6fr));
}

.fb-postmatch-toolbar .fb-mode {
  align-self: end;
}

.fb-post-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}

.fb-post-dates label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fb-post-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
}

.fb-postmatch-panel {
  min-height: 420px;
}

.fb-post-preview {
  margin-top: 14px;
}

.fb-post-preview svg,
.fb-post-preview img {
  display: block;
  width: min(100%, 960px);
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(143, 168, 196, .20);
  border-radius: 14px;
  background: #04020d;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .35);
}

.fb-post-preview.is-metric svg,
.fb-post-preview.is-metric img {
  width: 100%;
  max-height: none;
}

.fb-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fb-filters select,
.fb-filters input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(143, 168, 196, .24);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--ink);
  background: #080d18;
  outline: 0;
}

.fb-primary,
.fb-secondary,
.fb-wide {
  height: 40px;
  border: 1px solid rgba(255, 118, 72, .48);
  border-radius: 10px;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(160deg, #ff9a62, var(--orange));
  box-shadow: 0 12px 28px rgba(255, 118, 72, .18);
  font-weight: 900;
}

.fb-secondary,
.fb-wide {
  border-color: rgba(143, 168, 196, .20);
  color: var(--text);
  background: rgba(10, 16, 27, .78);
  box-shadow: none;
}

.fb-status {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(460px, calc(100vw - 28px));
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(76, 201, 223, .24);
  border-radius: 999px;
  color: #aef5ff;
  background: rgba(8, 13, 24, .94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .05);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
}

.fb-status[hidden] { display: none !important; }

.fb-status.warn {
  border-color: rgba(255, 118, 72, .27);
  color: #ffc8ad;
  background: linear-gradient(0deg, rgba(255, 118, 72, .08), rgba(255, 118, 72, .08)), rgba(8, 13, 24, .94);
}

.fb-status.ok {
  border-color: rgba(142, 229, 174, .26);
  color: #c8ffd8;
  background: linear-gradient(0deg, rgba(142, 229, 174, .08), rgba(142, 229, 174, .08)), rgba(8, 13, 24, .94);
}

.fb-status.err {
  border-color: rgba(201, 84, 120, .34);
  color: #ffc1d2;
  background: linear-gradient(0deg, rgba(201, 84, 120, .10), rgba(201, 84, 120, .10)), rgba(8, 13, 24, .94);
}

.status,
.fb-status-inline {
  padding: 10px 12px;
  border: 1px solid rgba(76, 201, 223, .24);
  border-radius: 10px;
  color: #aef5ff;
  background: rgba(76, 201, 223, .08);
  font-size: 12px;
  line-height: 1.35;
}

.status.warn,
.fb-status-inline.warn {
  border-color: rgba(255, 118, 72, .27);
  color: #ffc8ad;
  background: rgba(255, 118, 72, .08);
}

.status.err,
.fb-status-inline.err {
  border-color: rgba(201, 84, 120, .34);
  color: #ffc1d2;
  background: rgba(201, 84, 120, .10);
}

.status.ok,
.fb-status-inline.ok {
  border-color: rgba(142, 229, 174, .26);
  color: #c8ffd8;
  background: rgba(142, 229, 174, .08);
}

.fb-auth-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 26, 43, .92), rgba(11, 17, 30, .92));
  box-shadow: var(--shadow);
}

.fb-auth-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.fb-auth-summary b,
.fb-auth-summary span span,
.fb-auth-summary strong {
  display: block;
}

.fb-auth-summary b {
  color: var(--ink);
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.fb-auth-summary span span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.fb-auth-summary strong {
  color: var(--green);
  font-size: 12px;
}

.fb-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}

.fb-auth-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(143, 168, 196, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}

.fb-auth-title {
  color: var(--ink);
  font-weight: 900;
}

.fb-auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.fb-auth-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fb-auth-card input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(143, 168, 196, .24);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--ink);
  background: #080d18;
  outline: 0;
}

.fb-auth-card input.inputErr {
  border-color: rgba(201, 84, 120, .70);
}

.fb-check {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 9px !important;
  line-height: 1.35;
}

.fb-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
}

.fb-check a,
.fb-auth-card a { color: var(--cyan); }

.fb-pricing {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(16, 26, 43, .94), rgba(9, 15, 27, .94)),
    rgba(11, 17, 30, .92);
  box-shadow: var(--shadow);
}

.fb-pricing[hidden] {
  display: none !important;
}

.fb-pricing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.fb-pricing-summary::-webkit-details-marker {
  display: none;
}

.fb-pricing-summary b,
.fb-pricing-summary small,
.fb-pricing-summary strong {
  display: block;
}

.fb-pricing-summary b {
  color: var(--ink);
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
}

.fb-pricing-summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.fb-pricing-summary strong {
  color: var(--green);
  font-size: 12px;
}

.fb-pricing-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.fb-pricing:not([open]) .fb-pricing-body {
  display: none;
}

.fb-pricing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.fb-pricing-head h2 {
  margin: 4px 0 0;
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

.fb-pricing-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.fb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fb-price-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(143, 168, 196, .16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(7, 12, 22, .78);
}

.fb-price-card.is-recommended {
  border-color: rgba(142, 229, 174, .42);
  background:
    linear-gradient(180deg, rgba(142, 229, 174, .075), rgba(255, 255, 255, .018)),
    rgba(7, 12, 22, .82);
}

.fb-price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}

.fb-price-plan {
  font-family: "Oswald", sans-serif;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  font-weight: 600;
}

.fb-price-pill,
.fb-best-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid rgba(76, 201, 223, .24);
  border-radius: 999px;
  color: #aef5ff;
  background: rgba(76, 201, 223, .08);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.fb-best-badge {
  justify-self: start;
  border-color: rgba(142, 229, 174, .28);
  color: #c8ffd8;
  background: rgba(142, 229, 174, .09);
}

.fb-price-card.is-recommended .fb-price-pill {
  border-color: rgba(142, 229, 174, .34);
  color: #c8ffd8;
  background: rgba(142, 229, 174, .10);
}

.fb-billing-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(143, 168, 196, .18);
  border-radius: 13px;
  background: rgba(3, 8, 15, .52);
}

.fb-billing-toggle button {
  display: grid;
  place-items: center;
  height: 42px;
  min-width: 0;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.fb-billing-toggle button span {
  display: block;
  color: var(--green);
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.fb-billing-toggle button.active {
  color: #06110d;
  background: linear-gradient(160deg, #dfffe8, var(--green));
}

.fb-billing-toggle button.active span { color: #06110d; }

.fb-price-value {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 44px;
}

.fb-price-value b {
  color: var(--ink);
  font-family: "Oswald", sans-serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 600;
}

.fb-price-value span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fb-feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fb-feature-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.fb-feature-list li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.fb-feature-list li.is-on span {
  border: 1px solid rgba(142, 229, 174, .28);
  color: #06110d;
  background: var(--green);
}

.fb-feature-list li.is-on span::before { content: "+"; }

.fb-feature-list li.is-off {
  color: rgba(203, 215, 228, .58);
}

.fb-feature-list li.is-off span {
  border: 1px solid rgba(143, 168, 196, .18);
  color: rgba(203, 215, 228, .62);
  background: rgba(255, 255, 255, .035);
}

.fb-feature-list li.is-off span::before { content: "-"; }

.fb-subscribe {
  width: 100%;
  margin-top: 2px;
}

.fb-subscribe.is-coming-soon {
  opacity: .72;
  filter: saturate(.78);
}

.fb-disclaimer {
  display: grid;
  gap: 5px;
  padding: 13px 16px;
  border: 1px solid rgba(143, 168, 196, .14);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(7, 12, 22, .68);
  font-size: 12px;
  line-height: 1.45;
}

.fb-disclaimer strong {
  color: var(--text);
  font-size: 12px;
}

.fb-layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.fb-calendar,
.fb-match-room,
.fb-card,
.fb-match-hero {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.fb-calendar {
  position: sticky;
  top: 12px;
  padding: 16px;
  border-radius: 20px;
}

.fb-section-head,
.fb-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.fb-kicker {
  color: var(--green);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.fb-section-head h1,
.fb-match-heading h2,
.fb-card h3 {
  margin: 4px 0 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.fb-section-head h1 { font-size: 25px; line-height: 1.05; }
.fb-section-head strong { color: var(--muted); font-size: 13px; }

.fb-muted {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.fb-match-groups {
  display: grid;
  gap: 12px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.fb-group {
  border: 1px solid rgba(143, 168, 196, .14);
  border-radius: 15px;
  overflow: hidden;
  background: rgba(8, 13, 24, .55);
}

.fb-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(143, 168, 196, .12);
}

.fb-group-head strong {
  font-family: "Oswald", sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.fb-group-head span,
.fb-league-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fb-league-row {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.fb-league-title {
  display: flex;
  justify-content: space-between;
  padding: 0 3px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.fb-match {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(143, 168, 196, .14);
  border-radius: 12px;
  padding: 9px;
  color: inherit;
  text-align: left;
  background: linear-gradient(160deg, rgba(13, 21, 36, .94), rgba(9, 15, 27, .96));
}

.fb-match:hover,
.fb-match.active {
  border-color: rgba(142, 229, 174, .40);
  background: linear-gradient(160deg, rgba(14, 42, 32, .94), rgba(9, 15, 27, .96));
}

.fb-mini-crest,
.fb-crest {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.fb-mini-crest img,
.fb-crest img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.fb-mini-crest.has-logo,
.fb-crest.has-logo {
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 0 0 1px rgba(11, 17, 32, .12);
}

.fb-mini-crest {
  width: 34px;
  height: 34px;
  background: rgba(255, 118, 72, .24);
  font-size: 10px;
}

.fb-mini-crest.away { background: rgba(76, 201, 223, .24); }

.fb-mini-crest.has-logo.away { background: rgba(255, 255, 255, .92); }

.fb-match-main { min-width: 0; }

.fb-match-title {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.fb-match-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.18;
}

.fb-match-sub {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.fb-edge {
  display: none;
  padding: 4px 7px;
  border: 1px solid rgba(142, 229, 174, .18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(142, 229, 174, .07);
  font-size: 10px;
  font-weight: 900;
}

.fb-wide {
  width: 100%;
  margin-top: 12px;
}

.fb-match-room {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(8, 13, 24, .72);
}

.fb-match-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-height: 230px;
  padding: 22px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 49, 36, .95), rgba(9, 15, 27, .97) 56%, rgba(39, 19, 15, .92)),
    var(--panel-3);
}

.fb-pitch-lines {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(216, 255, 232, .13);
  border-radius: 14px;
  opacity: .62;
  pointer-events: none;
}

.fb-pitch-lines span { position: absolute; display: block; }
.fb-pitch-lines .mid { top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(216, 255, 232, .17); }
.fb-pitch-lines .circle {
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(216, 255, 232, .18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.fb-pitch-lines .box {
  top: 29%;
  width: 92px;
  height: 42%;
  border: 1px solid rgba(216, 255, 232, .16);
}
.fb-pitch-lines .box.left { left: 0; border-left: 0; }
.fb-pitch-lines .box.right { right: 0; border-right: 0; }

.fb-match-heading,
.fb-scoreline,
.fb-hero-actions,
.fb-hero-state { position: relative; z-index: 1; }

.fb-match-heading {
  position: absolute;
  inset: 24px 26px auto 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  min-width: 0;
  pointer-events: none;
}

.fb-match-heading h2 { display: none; }

.fb-match-heading p {
  grid-column: 2;
  align-self: end;
  width: max-content;
  max-width: 320px;
  margin: 158px auto 0;
  color: #b9c6d4;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

#stageLeague {
  grid-column: 1;
  justify-self: start;
}

.fb-hero-actions {
  position: absolute;
  top: 24px;
  right: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fb-hero-state {
  padding: 6px 10px;
  border: 1px solid rgba(142, 229, 174, .22);
  border-radius: 999px;
  color: var(--green);
  background: rgba(142, 229, 174, .09);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.fb-admin-refresh {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(76, 201, 223, .28);
  border-radius: 999px;
  color: #aef5ff;
  background: rgba(7, 12, 22, .68);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fb-admin-refresh:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(76, 201, 223, .16);
}

.fb-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 186px;
  padding: 34px 26px 26px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.fb-team {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.fb-team.away {
  grid-template-columns: minmax(0, 1fr) 44px;
  text-align: right;
}

.fb-team.away .fb-crest { grid-column: 2; grid-row: 1; }
.fb-team.away > div { grid-column: 1; grid-row: 1; }

.fb-team b,
.fb-power-label {
  grid-column: 1 / -1;
  margin-left: 0;
}

.fb-team.home b,
.fb-team.home .fb-power-label { padding-left: 3px; }

.fb-team.away b,
.fb-team.away .fb-power-label {
  padding-right: 3px;
  text-align: right;
}

.fb-crest {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(160deg, rgba(255, 118, 72, .78), rgba(98, 36, 24, .95));
  font-size: 13px;
}

.fb-crest.away { background: linear-gradient(160deg, rgba(76, 201, 223, .78), rgba(14, 55, 68, .95)); }

.fb-crest.has-logo.away { background: rgba(255, 255, 255, .92); }

.fb-team small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.fb-team strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.fb-team b {
  color: #ffad84;
  font-family: "Oswald", sans-serif;
  font-size: 54px;
  font-weight: 700;
  line-height: .92;
  text-shadow: 0 0 34px rgba(255, 118, 72, .28);
}

.fb-team:last-child b {
  color: #83e8f4;
  text-shadow: 0 0 34px rgba(76, 201, 223, .28);
}

.fb-power-label {
  align-self: end;
  margin-top: -8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.fb-vs {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: var(--green);
  font-family: "Oswald", sans-serif;
  min-width: 150px;
  min-height: 72px;
  padding: 10px 16px;
  border: 1px solid rgba(216, 255, 232, .16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 25, 38, .98), rgba(8, 13, 24, .98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .06);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.fb-vs span {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1px;
}

.fb-vs small {
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .7px;
}

.fb-vs b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
  text-transform: none;
}

.fb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 10, 18, .46);
}

.fb-tabs button {
  min-width: 96px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.fb-tabs button.active {
  color: var(--ink);
  background: rgba(142, 229, 174, .10);
  box-shadow: inset 0 0 0 1px rgba(142, 229, 174, .22);
}

.fb-tab-panel { display: none; }
.fb-tab-panel.active { display: grid; gap: 14px; }

.fb-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
  gap: 14px;
}

.fb-main-grid.lower {
  grid-template-columns: minmax(0, 1.25fr) 280px;
}

.fb-field-grid,
.fb-quick-grid {
  display: grid;
  gap: 14px;
}

.fb-quick-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.fb-card {
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(13, 21, 36, .94), rgba(9, 15, 27, .94));
  box-shadow: none;
}

.fb-card h3 {
  font-size: 21px;
  line-height: 1.14;
}

.fb-read-card p,
.fb-read-text {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.fb-pill {
  padding: 5px 9px;
  border: 1px solid rgba(142, 229, 174, .24);
  border-radius: 999px;
  color: var(--green);
  background: rgba(142, 229, 174, .08);
  font-size: 11px;
  font-weight: 900;
}

.fb-bullets {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.fb-bullets span {
  display: block;
  padding: 10px 11px;
  border: 1px solid rgba(143, 168, 196, .13);
  border-radius: 11px;
  color: #cbd7e4;
  background: rgba(255, 255, 255, .035);
  font-size: 13px;
  line-height: 1.4;
}

.fb-vector-details {
  margin-top: 12px;
  border: 1px solid rgba(143, 168, 196, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}

.fb-vector-details[hidden] { display: none; }

.fb-vector-details summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.fb-vector-extra-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.fb-vector-extra {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(143, 168, 196, .10);
  border-radius: 10px;
  background: rgba(0, 0, 0, .12);
}

.fb-vector-extra strong {
  color: var(--ink);
  font-size: 12px;
}

.fb-vector-extra span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.fb-pulse-card {
  background: linear-gradient(180deg, rgba(13, 23, 32, .96), rgba(9, 15, 27, .96));
}

.fb-pulse-row {
  display: grid;
  gap: 4px;
  margin: 14px 0 8px;
  color: var(--text);
  font-size: 13px;
}

.fb-pulse-row b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.fb-duel-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.fb-duel-values span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-duel-values span:last-child { text-align: right; }

.fb-duel-values em {
  color: var(--ink);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.fb-pulse-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.fb-pulse-metrics {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(143, 168, 196, .12);
}

.fb-duel-metric {
  display: grid;
  gap: 7px;
}

.fb-duel-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.fb-duel-metric strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-rail,
.fb-mini-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.fb-rail::after,
.fb-mini-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, .24);
}

.fb-rail i,
.fb-mini-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffad84, var(--orange));
  transition: width .35s ease;
}

.fb-rail i:first-child,
.fb-mini-bar i:first-child {
  justify-self: end;
  background: linear-gradient(90deg, #ffad84, var(--orange));
}

.fb-rail i:last-child,
.fb-mini-bar i:last-child {
  justify-self: start;
  background: linear-gradient(90deg, var(--cyan), #83e8f4);
}

.fb-rail.green i:last-child,
.fb-mini-bar.green i:last-child { background: linear-gradient(90deg, var(--cyan), #83e8f4); }

.fb-pitch-card {
  background: linear-gradient(160deg, rgba(8, 30, 25, .92), rgba(9, 15, 27, .96));
}

.fb-pitch {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(216, 255, 232, .24);
  border-radius: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 70px, rgba(255, 255, 255, .014) 70px 140px),
    linear-gradient(160deg, #0f3c29, #09271e 56%, #07141b);
}

.fb-roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.fb-roster-side {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(143, 168, 196, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}

.fb-roster-side strong {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-roster-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.fb-roster-list span {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-pitch::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(216, 255, 232, .31);
  border-radius: 12px;
}

.fb-pitch::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  background: rgba(216, 255, 232, .28);
}

.fb-center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(216, 255, 232, .28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.fb-goalbox,
.fb-sixbox {
  position: absolute;
  z-index: 1;
  top: 28%;
  width: 9%;
  height: 44%;
  border: 2px solid rgba(216, 255, 232, .22);
}

.fb-goalbox.left,
.fb-sixbox.left {
  left: 12px;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.fb-goalbox.right,
.fb-sixbox.right {
  right: 12px;
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.fb-sixbox {
  top: 38%;
  width: 4.5%;
  height: 24%;
}

.fb-player {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, .54);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 118, 72, .78);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .30);
  font-size: 9px;
  font-weight: 900;
}

.fb-player.away { background: rgba(76, 201, 223, .78); }

.fb-player small {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  width: 74px;
  overflow: hidden;
  color: rgba(255, 255, 255, .86);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
  transform: translateX(-50%);
  white-space: nowrap;
}

.fb-empty-pitch {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
  color: rgba(255, 255, 255, .72);
  text-align: center;
  font-weight: 800;
  line-height: 1.45;
}

.fb-stack { padding: 0; overflow: hidden; }

.fb-prob-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  background: linear-gradient(180deg, rgba(13, 23, 32, .96), rgba(9, 15, 27, .96));
}

.fb-scenario-probs {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.fb-quick-card .fb-form-pair {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(143, 168, 196, .12);
}

.fb-quick-card .fb-form-pair-row b {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.fb-quick-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  background: linear-gradient(180deg, rgba(13, 23, 32, .96), rgba(9, 15, 27, .96));
}

.fb-player-card {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(13, 23, 32, .96), rgba(9, 15, 27, .96));
}

.fb-player-insights {
  margin-top: 14px;
}

.fb-player-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fb-player-team {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 118, 72, .16);
  border-radius: 12px;
  background: rgba(255, 118, 72, .045);
}

.fb-player-team.away {
  border-color: rgba(76, 201, 223, .16);
  background: rgba(76, 201, 223, .045);
}

.fb-player-team-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.fb-player-team-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-player-team-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.fb-insight-group {
  display: grid;
  gap: 7px;
}

.fb-insight-group > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.fb-insight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid rgba(143, 168, 196, .13);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.fb-insight-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.fb-insight-row b {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-insight-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-insight-row em {
  min-width: 48px;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.fb-insight-row.boost em {
  color: #092016;
  background: var(--green);
}

.fb-insight-row.weak em {
  color: #2b0d09;
  background: #ff9178;
}

.fb-insight-row.load em {
  color: #07141b;
  background: #f6c96d;
}

.fb-quick-chem {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.fb-quick-donuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fb-quick-donuts.xf {
  padding-top: 12px;
  border-top: 1px solid rgba(143, 168, 196, .12);
}

.fb-quick-donut {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(143, 168, 196, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.fb-donut-ring {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--value) * 1%), rgba(255,255,255,.08) 0);
}

.fb-donut-ring.is-loading {
  background: conic-gradient(rgba(142, 229, 174, .32) 18%, rgba(255,255,255,.08) 0);
  animation: fb-spin .9s linear infinite;
}

.fb-donut-ring b {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #0b1120;
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.fb-quick-donut strong,
.fb-quick-donut span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-quick-donut strong {
  color: var(--ink);
  font-size: 13px;
}

.fb-quick-donut span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fb-scenario-source {
  display: block;
  min-height: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fb-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.fb-mini {
  min-height: 92px;
  padding: 15px;
  border-bottom: 1px solid rgba(143, 168, 196, .13);
}

.fb-mini:last-child { border-bottom: 0; }

.fb-mini span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fb-mini strong {
  display: block;
  margin: 8px 0 10px;
  font-family: "Oswald", sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
}

.fb-form-strip,
.fb-form-pair-row {
  display: flex;
  gap: 5px;
}

.fb-form-pair {
  display: grid;
  gap: 7px;
}

.fb-form-pair-row {
  align-items: center;
  flex-wrap: wrap;
}

.fb-form-pair-row b {
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
}

.fb-muted-inline {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fb-form-strip i,
.fb-form-pair-row i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #06110d;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  background: #94a3b8;
}

.fb-form-strip .w,
.fb-form-pair-row .w { background: var(--green); }
.fb-form-strip .d,
.fb-form-pair-row .d { background: #cbd5e1; }
.fb-form-strip .l,
.fb-form-pair-row .l { background: #ff9178; }
.fb-form-strip .na,
.fb-form-pair-row .na {
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
}

.fb-metric-legend {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(143, 168, 196, .13);
  background: rgba(3, 8, 16, .28);
}

.fb-metric-legend div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
}

.fb-metric-legend b {
  color: var(--green);
  font-family: "Oswald", sans-serif;
  font-size: 14px;
}

.fb-compare,
.fb-form-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fb-form-dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fb-form-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(143, 168, 196, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}

.fb-form-card.wide { grid-column: 1 / -1; }

.fb-form-card > span,
.fb-chart-card > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fb-form-line {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(143, 168, 196, .10);
}

.fb-form-line:first-of-type { border-top: 0; }

.fb-form-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-donut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fb-donut {
  min-width: 0;
  text-align: center;
}

.fb-donut small,
.fb-donut b {
  display: block;
}

.fb-donut small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fb-donut b {
  margin-top: 2px;
  color: var(--text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.fb-compare-card {
  border: 1px solid rgba(143, 168, 196, .14);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, .03);
}

.fb-compare-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.fb-compare-row,
.fb-metric-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 52px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(143, 168, 196, .10);
  color: var(--text);
  font-size: 13px;
}

.fb-compare-row:first-of-type,
.fb-metric-row:first-child { border-top: 0; }

.fb-compare-row b,
.fb-metric-row b {
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fb-chem-shell {
  overflow: hidden;
  border: 1px solid rgba(143, 168, 196, .14);
  border-radius: 14px;
  background: #0b1120;
}

.fb-chem-shell iframe {
  display: block;
  width: 100%;
  height: min(900px, 72vh);
  border: 0;
  background: #0b1120;
}

.fb-chem-shell.is-demo { display: none; }

.fb-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.fb-chart-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(143, 168, 196, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}

.fb-chart-card.metric-primary {
  display: flex;
  flex-direction: column;
  min-height: 336px;
}

.fb-chart-card.metric-primary .fb-chart-canvas {
  flex: 1 1 auto;
  height: auto;
  min-height: 220px;
}

.fb-chart-card.wide {
  display: block;
  grid-column: 1 / -1;
}

.fb-chart-canvas {
  position: relative;
  width: 100%;
  height: 260px;
  min-height: 220px;
}

.fb-chart-canvas.sm {
  height: 112px;
  min-height: 112px;
}

.fb-chart-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.fb-xf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.fb-xf-head div { min-width: 0; }
.fb-xf-head div:last-child { text-align: right; }

.fb-xf-head small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-xf-head strong {
  display: block;
  margin-top: 4px;
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  font-weight: 600;
}

.fb-xf-head b {
  padding: 6px 10px;
  border: 1px solid rgba(142, 229, 174, .22);
  border-radius: 999px;
  color: var(--green);
  background: rgba(142, 229, 174, .08);
  font-size: 12px;
}

.fb-dash-bars {
  display: grid;
  gap: 10px;
}

.fb-dash-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(0, 2.2fr) 42px;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 12px;
}

.fb-dash-row strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-dash-row b {
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fb-dash-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.fb-dash-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffad84, var(--orange));
}

.fb-dash-track.away i { background: linear-gradient(90deg, #83e8f4, var(--cyan)); }

.fb-xf-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.fb-xf-strip i:first-child { background: linear-gradient(90deg, #ffad84, var(--orange)); }
.fb-xf-strip i:last-child { background: linear-gradient(90deg, var(--cyan), #83e8f4); }

.fb-sqb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fb-sqb-cell {
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(143, 168, 196, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}

.fb-sqb-cell small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.fb-sqb-cell strong {
  display: block;
  margin-top: 6px;
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.fb-empty-state,
.fb-locked {
  padding: 14px;
  border: 1px dashed rgba(143, 168, 196, .24);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  line-height: 1.45;
}

.fb-locked {
  display: grid;
  gap: 5px;
  border-color: rgba(76, 201, 223, .26);
  color: var(--text);
  background: rgba(76, 201, 223, .06);
}

.fb-locked strong { color: var(--ink); }
.fb-locked span { color: var(--muted); }
.fb-locked a {
  justify-self: start;
  margin-top: 3px;
  padding: 7px 10px;
  border: 1px solid rgba(142, 229, 174, .24);
  border-radius: 999px;
  color: var(--green);
  background: rgba(142, 229, 174, .08);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.fb-locked a:hover {
  color: #06110d;
  background: var(--green);
}

.fb-probs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fb-probs div {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid rgba(143, 168, 196, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.fb-probs span,
.fb-probs small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.fb-probs b {
  display: block;
  margin-top: 5px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1;
}

.fb-probs small {
  display: none;
}

.fb-prob-vector {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(143, 168, 196, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}

.fb-prob-vector strong,
.fb-prob-vector b,
.fb-prob-vector span,
.fb-prob-vector em {
  display: block;
}

.fb-prob-vector strong {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.fb-prob-vector b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-prob-vector span,
.fb-prob-vector em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.fb-prob-vector em { color: var(--text); }

.fb-prob-bar {
  display: flex;
  height: 24px;
  overflow: hidden;
  border: 1px solid rgba(143, 168, 196, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.fb-prob-bar i {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, .88);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.fb-prob-bar .home { background: linear-gradient(90deg, #ffad84, var(--orange)); }
.fb-prob-bar .draw { background: linear-gradient(90deg, rgba(203, 215, 228, .42), rgba(131, 147, 167, .72)); }
.fb-prob-bar .away { background: linear-gradient(90deg, var(--cyan), #83e8f4); color: #06110d; }

.fb-sqb-pitch {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 232, .22);
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 70px, rgba(255, 255, 255, .014) 70px 140px),
    linear-gradient(160deg, #0f3c29, #09271e 56%, #07141b);
}

.fb-sqb-pitch::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(216, 255, 232, .24);
  border-radius: 10px;
}

.fb-sqb-pitch::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  background: rgba(216, 255, 232, .24);
}

.fb-sqb-team {
  position: absolute;
  z-index: 2;
  top: 14px;
  max-width: 42%;
  overflow: hidden;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-sqb-team.home { left: 18px; }
.fb-sqb-team.away { right: 18px; text-align: right; }

.fb-sqb-zone {
  position: absolute;
  z-index: 2;
  top: 62px;
  bottom: 42px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 118, 72, calc(.08 + var(--power) * .22));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.fb-sqb-zone.away { background: rgba(76, 201, 223, calc(.08 + var(--power) * .22)); }

.fb-sqb-zone small {
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 900;
}

.fb-sqb-zone b {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 1120px) {
  .fb-filters,
  .fb-postmatch-toolbar,
  .fb-layout,
  .fb-match-hero,
  .fb-main-grid,
  .fb-main-grid.lower,
  .fb-quick-grid,
  .fb-pricing-grid {
    grid-template-columns: 1fr;
  }

  .fb-pricing-head { align-items: flex-start; flex-direction: column; }
  .fb-pricing-head p { max-width: none; text-align: left; }
  .fb-calendar { position: static; }
  .fb-scoreline {
    grid-template-columns: 1fr;
    max-width: none;
    min-height: 0;
    padding: 20px 18px 18px;
  }
  .fb-team,
  .fb-team.away {
    grid-template-columns: 42px minmax(0, 1fr) minmax(56px, auto);
    text-align: left;
  }
  .fb-team.away .fb-crest { grid-column: 1; }
  .fb-team.away > div { grid-column: 2; }
  .fb-team b,
  .fb-team.away b {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    margin-left: 0;
    padding: 0;
    text-align: right;
    font-size: 32px;
  }
  .fb-power-label,
  .fb-team.away .fb-power-label {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    justify-self: end;
    margin: -6px 0 0;
    padding: 0;
    text-align: right;
    font-size: 10px;
  }
  .fb-vs {
    min-width: 132px;
    min-height: 64px;
    justify-self: center;
  }
  .fb-stack .fb-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-mini:nth-child(2) { border-bottom: 1px solid rgba(143, 168, 196, .13); }
}

@media (max-width: 720px) {
  .fb-shell { width: min(100vw - 22px, 1280px); margin-top: 12px; }
  .fb-topbar { align-items: flex-start; flex-direction: column; }
  .fb-nav { width: 100%; overflow-x: auto; }
  .fb-filters { padding: 12px; }
  .fb-match-room { padding: 10px; }
  .fb-match-hero { padding: 18px; }
  .fb-scoreline { padding: 13px; gap: 18px; }
  .fb-match-heading { position: relative; inset: auto; grid-template-columns: 1fr; }
  .fb-match-heading p { grid-column: 1; margin: 8px 0 0; width: auto; max-width: none; text-align: left; }
  .fb-hero-actions { position: relative; top: auto; right: auto; justify-self: start; flex-wrap: wrap; }
  #stageLeague { grid-column: 1; }
  .fb-crest { width: 42px; height: 42px; }
  .fb-compare { grid-template-columns: 1fr; }
  .fb-form-dashboard { grid-template-columns: 1fr; }
  .fb-form-card.wide { grid-column: auto; }
  .fb-form-line { grid-template-columns: 1fr; }
  .fb-donut-grid { grid-template-columns: 1fr; }
  .fb-quick-donuts { grid-template-columns: 1fr; }
  .fb-player-insight-grid { grid-template-columns: 1fr; }
  .fb-dashboard { grid-template-columns: 1fr; }
  .fb-chart-card.wide { grid-column: auto; }
  .fb-roster { grid-template-columns: 1fr; }
  .fb-probs { grid-template-columns: 1fr; }
  .fb-auth-grid { grid-template-columns: 1fr; }
  .fb-auth-summary { align-items: flex-start; flex-direction: column; }
  .fb-post-dates { grid-template-columns: 1fr; }
  .fb-post-preview svg,
  .fb-post-preview img { max-height: none; }
}

@media (max-width: 480px) {
  .fb-mode { width: 100%; }
  .fb-mode button { flex: 1; }
  .fb-tabs button { flex: 1 1 42%; min-width: 0; }
  .fb-match { grid-template-columns: 30px minmax(0, 1fr) 30px; }
  .fb-edge { display: none; }
  .fb-mini-crest { width: 30px; height: 30px; }
  .fb-stack .fb-mini-grid { grid-template-columns: 1fr; }
  .fb-pitch { min-height: 300px; }
}
