/* CLUBX Broadcast Obsidian & Gold Design System (v22.0) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=JetBrains+Mono:wght@500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root,
html,
html[data-theme],
html[data-theme="carbon"],
html[data-theme="clubx-obsidian"] {
  --color-navy: 9 9 13;
  --color-surface-1: 18 19 26;
  --color-surface-2: 31 33 44;
  --color-surface-3: 44 47 62;
  --color-chalk: 244 241 234;
  --color-pitch: 229 185 76;

  --pitch: #E5B94C;
  --navy: #09090D;
  --surface: #12131A;
  --surface-2: #1F212C;
  --chalk: #F4F1EA;
  --clubx-emerald: #10B981;
}

body {
  background-color: #09090D !important;
  background-image:
    radial-gradient(ellipse 80% 42% at 50% -8%, rgba(229, 185, 76, 0.10) 0%, transparent 65%),
    radial-gradient(circle at 88% 12%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  color: #F4F1EA !important;
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif !important;
}

h1, h2, .clubx-display {
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: 0.02em;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace !important;
}

/* Studio card polish */
.bg-surface {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 10px 28px rgba(0, 0, 0, 0.42);
}

/* Override compiled pitch tokens to Champion Gold */
.text-pitch { color: rgb(229 185 76 / var(--tw-text-opacity, 1)) !important; }
.text-pitch\/50 { color: rgba(229, 185, 76, 0.50) !important; }
.text-pitch\/60 { color: rgba(229, 185, 76, 0.60) !important; }
.text-pitch\/70 { color: rgba(229, 185, 76, 0.70) !important; }
.text-pitch\/80 { color: rgba(229, 185, 76, 0.80) !important; }

.bg-pitch {
  background: linear-gradient(135deg, #F3CA62 0%, #D9A736 100%) !important;
  background-color: #E5B94C !important;
}
.bg-pitch\/5  { background-color: rgba(229, 185, 76, 0.05) !important; }
.bg-pitch\/10 { background-color: rgba(229, 185, 76, 0.10) !important; }
.bg-pitch\/15 { background-color: rgba(229, 185, 76, 0.15) !important; }
.bg-pitch\/20 { background-color: rgba(229, 185, 76, 0.20) !important; }
.bg-pitch\/30 { background-color: rgba(229, 185, 76, 0.30) !important; }
.bg-pitch\/50 { background-color: rgba(229, 185, 76, 0.50) !important; }
.bg-pitch\/60 { background-color: rgba(229, 185, 76, 0.60) !important; }
.bg-pitch\/70 { background-color: rgba(229, 185, 76, 0.70) !important; }
.bg-pitch\/80 { background-color: rgba(229, 185, 76, 0.80) !important; }

.border-pitch     { border-color: rgba(229, 185, 76, 1) !important; }
.border-l-pitch   { border-left-color: rgba(229, 185, 76, 1) !important; }
.border-t-pitch   { border-top-color: rgba(229, 185, 76, 1) !important; }
.border-t-pitch\/70 { border-top-color: rgba(229, 185, 76, 0.70) !important; }
.border-pitch\/10 { border-color: rgba(229, 185, 76, 0.10) !important; }
.border-pitch\/20 { border-color: rgba(229, 185, 76, 0.20) !important; }
.border-pitch\/25 { border-color: rgba(229, 185, 76, 0.25) !important; }
.border-pitch\/30 { border-color: rgba(229, 185, 76, 0.30) !important; }
.border-pitch\/35 { border-color: rgba(229, 185, 76, 0.35) !important; }
.border-pitch\/40 { border-color: rgba(229, 185, 76, 0.40) !important; }
.border-pitch\/50 { border-color: rgba(229, 185, 76, 0.50) !important; }
.border-pitch\/60 { border-color: rgba(229, 185, 76, 0.60) !important; }

.hover\:bg-pitch:hover     { background: #F0C65A !important; background-color: #F0C65A !important; }
.hover\:bg-pitch\/80:hover { background: rgba(229, 185, 76, 0.85) !important; }
.hover\:bg-pitch\/90:hover { background: #EFC65B !important; }
.hover\:bg-pitch\/10:hover { background-color: rgba(229, 185, 76, 0.10) !important; }
.hover\:bg-pitch\/15:hover { background-color: rgba(229, 185, 76, 0.15) !important; }
.hover\:bg-pitch\/20:hover { background-color: rgba(229, 185, 76, 0.20) !important; }
.hover\:bg-pitch\/25:hover { background-color: rgba(229, 185, 76, 0.25) !important; }
.hover\:bg-pitch\/30:hover { background-color: rgba(229, 185, 76, 0.30) !important; }
.hover\:bg-pitch\/40:hover { background-color: rgba(229, 185, 76, 0.40) !important; }
.hover\:text-pitch:hover   { color: #E5B94C !important; }
.hover\:text-pitch\/80:hover { color: rgba(229, 185, 76, 0.85) !important; }
.hover\:border-pitch:hover     { border-color: #E5B94C !important; }
.hover\:border-pitch\/30:hover { border-color: rgba(229, 185, 76, 0.30) !important; }
.hover\:border-pitch\/40:hover { border-color: rgba(229, 185, 76, 0.40) !important; }
.hover\:border-pitch\/50:hover { border-color: rgba(229, 185, 76, 0.50) !important; }
.hover\:border-pitch\/60:hover { border-color: rgba(229, 185, 76, 0.60) !important; }

.group:hover .group-hover\:text-pitch { color: #E5B94C !important; }
.group:hover .group-hover\:bg-pitch { background-color: #E5B94C !important; }
.group:hover .group-hover\:bg-pitch\/20 { background-color: rgba(229, 185, 76, 0.20) !important; }
.group:hover .group-hover\:border-pitch\/50 { border-color: rgba(229, 185, 76, 0.50) !important; }

.focus\:border-pitch:focus,
.focus\:border-pitch\/40:focus,
.focus\:border-pitch\/50:focus,
.focus\:border-pitch\/60:focus,
.focus\:border-pitch\/70:focus,
.focus-within\:border-pitch:focus-within {
  border-color: rgba(229, 185, 76, 0.65) !important;
}

.ring-pitch { --tw-ring-color: #E5B94C !important; }
.ring-pitch\/30, .hover\:ring-pitch\/30:hover { --tw-ring-color: rgba(229, 185, 76, 0.30) !important; }
.focus\:ring-pitch:focus { --tw-ring-color: #E5B94C !important; }
.focus\:ring-pitch\/30:focus { --tw-ring-color: rgba(229, 185, 76, 0.30) !important; }
.focus\:ring-pitch\/50:focus, .focus-visible\:ring-pitch\/50:focus-visible { --tw-ring-color: rgba(229, 185, 76, 0.50) !important; }
.accent-pitch { accent-color: #E5B94C !important; }
.shadow-pitch\/20 { --tw-shadow-color: rgba(229, 185, 76, 0.20) !important; }
.shadow-pitch\/30 { --tw-shadow-color: rgba(229, 185, 76, 0.30) !important; }

.from-pitch     { --tw-gradient-from: #E5B94C var(--tw-gradient-from-position) !important; }
.from-pitch\/10 { --tw-gradient-from: rgba(229, 185, 76, 0.10) var(--tw-gradient-from-position) !important; }
.from-pitch\/15 { --tw-gradient-from: rgba(229, 185, 76, 0.15) var(--tw-gradient-from-position) !important; }
.from-pitch\/20 { --tw-gradient-from: rgba(229, 185, 76, 0.20) var(--tw-gradient-from-position) !important; }
.from-pitch\/30 { --tw-gradient-from: rgba(229, 185, 76, 0.30) var(--tw-gradient-from-position) !important; }
.via-pitch\/10  { --tw-gradient-via: rgba(229, 185, 76, 0.10) var(--tw-gradient-via-position) !important; }
.via-pitch\/20  { --tw-gradient-via: rgba(229, 185, 76, 0.20) var(--tw-gradient-via-position) !important; }
.to-pitch\/5    { --tw-gradient-to: rgba(229, 185, 76, 0.05) var(--tw-gradient-to-position) !important; }
.to-pitch\/10   { --tw-gradient-to: rgba(229, 185, 76, 0.10) var(--tw-gradient-to-position) !important; }
.to-pitch\/20   { --tw-gradient-to: rgba(229, 185, 76, 0.20) var(--tw-gradient-to-position) !important; }
.to-pitch\/30   { --tw-gradient-to: rgba(229, 185, 76, 0.30) var(--tw-gradient-to-position) !important; }

/* Custom gold scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(9, 9, 13, 0.75); }
::-webkit-scrollbar-thumb { background: rgba(229, 185, 76, 0.28); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(229, 185, 76, 0.55); }

/* =========================================================
   CLUBX TOP COMMAND BAR & ALWAYS-VISIBLE INLINE NAVIGATION
   ========================================================= */
.clubx-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  min-height: 60px;
  padding: 7px 0;
  z-index: 50;
  background: rgba(9, 9, 13, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 185, 76, 0.24);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.clubx-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.clubx-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  flex-shrink: 0;
}

.clubx-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.clubx-brand-name {
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #F4F1EA;
}

.clubx-brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: rgba(229, 185, 76, 0.8);
  margin-top: 1px;
}

.clubx-main-nav {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  flex: 0 0 auto;
  margin: 0 auto;
}

.clubx-hub-wrap {
  position: relative;
}

.clubx-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(244, 241, 234, 0.78);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.16s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 1380px) {
  .clubx-brand-sub {
    display: none;
  }
  #server-status-badge {
    display: none !important;
  }
  #btn-global-search span.xl\:inline {
    display: none !important;
  }
  .clubx-hub-btn {
    padding: 5px 8.5px;
    font-size: 11.5px;
    gap: 3px;
  }
  #topbar-club-pill {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  #btn-header-signin {
    padding: 4px 9px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }
  #btn-global-search {
    padding: 4px 7px !important;
    flex-shrink: 0;
  }
}

@media (max-width: 960px) {
  .clubx-brand-text {
    display: none;
  }
  .clubx-topbar-inner {
    gap: 5px;
    padding: 0 8px;
  }
  .clubx-main-nav {
    gap: 3px;
  }
  .clubx-hub-btn {
    padding: 4px 6.5px;
    font-size: 10.5px;
    gap: 2.5px;
  }
  #topbar-club-pill {
    max-width: 88px;
    padding: 4px 6px !important;
    font-size: 10.5px !important;
  }
  #btn-header-signin {
    padding: 4px 7px !important;
    font-size: 10.5px !important;
  }
}

@media (max-width: 750px) {
  .clubx-brand-text {
    display: flex;
  }
  .clubx-topbar-inner {
    flex-wrap: wrap;
  }
  .clubx-main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 4px;
    margin: 0;
  }
}

.clubx-hub-btn:hover,
.clubx-hub-wrap:focus-within .clubx-hub-btn {
  color: #F4F1EA;
  background: rgba(229, 185, 76, 0.08);
  border-color: rgba(229, 185, 76, 0.22);
}

.clubx-hub-btn.is-active {
  color: #09090D !important;
  background: linear-gradient(135deg, #F4CA64 0%, #D9A736 100%) !important;
  border-color: #F4CA64 !important;
  box-shadow: 0 4px 16px rgba(229, 185, 76, 0.25);
}

.clubx-hub-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(16, 17, 24, 0.98);
  border: 1px solid rgba(229, 185, 76, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  z-index: 60;
}

.clubx-hub-wrap:hover .clubx-hub-dropdown,
.clubx-hub-wrap:focus-within .clubx-hub-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.clubx-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(244, 241, 234, 0.80);
  transition: all 0.14s ease;
}

.clubx-dropdown-link:hover {
  background: rgba(229, 185, 76, 0.14);
  color: #E5B94C;
}

.clubx-substrip {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 45;
  background: rgba(14, 15, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
}

.clubx-substrip-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.clubx-substrip-inner::-webkit-scrollbar {
  display: none;
}

.clubx-sub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(244, 241, 234, 0.62);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.clubx-sub-link:hover {
  color: #F4F1EA;
  border-color: rgba(229, 185, 76, 0.35);
}

.clubx-sub-link.is-active {
  color: #E5B94C;
  background: rgba(229, 185, 76, 0.14);
  border-color: rgba(229, 185, 76, 0.45);
}

.clubx-live-dot {
  background-color: #10B981 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.75);
}

/* =========================================================
   CLUBX GLOBAL ATLAS (/map) v23.0
   ========================================================= */
.clubx-map-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(229, 185, 76, 0.22);
  background-color: #0B0C11;
  background-image:
    radial-gradient(ellipse 75% 65% at 50% 42%, rgba(229, 185, 76, 0.10) 0%, transparent 68%),
    linear-gradient(rgba(229, 185, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 185, 76, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 36px rgba(0, 0, 0, 0.48);
}

.clubx-map-region {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clubx-map-region .clubx-map-land {
  fill: rgba(244, 241, 234, 0.065);
  stroke: rgba(229, 185, 76, 0.28);
  stroke-width: 1.4;
  transition: all 0.2s ease;
}

.clubx-map-region:hover .clubx-map-land {
  fill: rgba(229, 185, 76, 0.17);
  stroke: rgba(229, 185, 76, 0.72);
}

.clubx-map-region.is-active .clubx-map-land {
  fill: rgba(229, 185, 76, 0.28);
  stroke: #E5B94C;
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(229, 185, 76, 0.35));
}

.clubx-map-hotspot {
  cursor: pointer;
  transition: all 0.18s ease;
}

.clubx-map-hotspot-pill {
  fill: rgba(15, 16, 23, 0.92);
  stroke: rgba(229, 185, 76, 0.36);
  stroke-width: 1.2;
  transition: all 0.18s ease;
}

.clubx-map-region:hover .clubx-map-hotspot-pill,
.clubx-map-hotspot:hover .clubx-map-hotspot-pill {
  fill: rgba(28, 30, 42, 0.98);
  stroke: #E5B94C;
}

.clubx-map-region.is-active .clubx-map-hotspot-pill,
.clubx-map-hotspot.is-active .clubx-map-hotspot-pill {
  fill: #E5B94C;
  stroke: #F7DDA0;
}

.clubx-map-hotspot-title {
  fill: #F4F1EA;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.clubx-map-hotspot-sub {
  fill: rgba(229, 185, 76, 0.92);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
}

.clubx-map-region.is-active .clubx-map-hotspot-title,
.clubx-map-hotspot.is-active .clubx-map-hotspot-title {
  fill: #09090D;
}

.clubx-map-region.is-active .clubx-map-hotspot-sub,
.clubx-map-hotspot.is-active .clubx-map-hotspot-sub {
  fill: rgba(9, 9, 13, 0.82);
}

.clubx-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(244, 241, 234, 0.72);
  background: rgba(18, 19, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.16s ease;
  white-space: nowrap;
}

.clubx-filter-chip:hover {
  color: #F4F1EA;
  border-color: rgba(229, 185, 76, 0.40);
  background: rgba(229, 185, 76, 0.09);
}

.clubx-filter-chip.is-active {
  color: #09090D;
  background: linear-gradient(135deg, #F3CA62 0%, #D9A736 100%);
  border-color: #F3CA62;
  box-shadow: 0 4px 14px rgba(229, 185, 76, 0.25);
}

.clubx-club-card {
  background: linear-gradient(180deg, rgba(22, 24, 33, 0.95) 0%, rgba(13, 14, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 22px rgba(0, 0, 0, 0.35);
}

.clubx-club-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 185, 76, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(229, 185, 76, 0.14);
}

.clubx-dossier-backdrop {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* CLUBX v34.0 & v35.0 FM Responsive Split Layouts & OFM Design Primitives */
.fm-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
.fm-two-col-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
.fm-two-col-eq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
@media (min-width: 760px) {
  .fm-two-col {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .fm-two-col-wide {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: start;
  }
  .fm-two-col-eq {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}
.club-panel.hidden {
  display: none !important;
}
.fm-pill-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.fm-pill-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.fm-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(244, 241, 234, 0.78);
  background: rgba(9, 9, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: all 0.15s ease;
}
.fm-pill-btn:hover {
  color: #F4F1EA;
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.12);
}
.fm-pill-btn.is-active {
  color: #09090D;
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  border-color: #34D399;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}
.fm-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.72rem;
  border-radius: 0.55rem;
  font-size: 11px;
  font-weight: 700;
  color: rgba(244, 241, 234, 0.85);
  background: rgba(18, 19, 26, 0.9);
  border: 1px solid rgba(229, 185, 76, 0.28);
  cursor: pointer;
  transition: all 0.15s ease;
}
.fm-preset-btn:hover,
.fm-preset-btn.is-active {
  color: #09090D;
  background: linear-gradient(135deg, #F3CA62 0%, #D9A736 100%);
  border-color: #F3CA62;
}
.fm-inbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.72rem;
  border-radius: 0.55rem;
  font-size: 11px;
  font-weight: 700;
  color: rgba(244, 241, 234, 0.75);
  background: rgba(9, 9, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.fm-inbox-chip:hover {
  color: #F4F1EA;
  border-color: rgba(16, 185, 129, 0.5);
}
.fm-inbox-chip.is-active {
  color: #09090D;
  background: #10B981;
  border-color: #34D399;
  font-weight: 800;
}
.fm-train-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.fm-train-card {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(9, 9, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: all 0.15s ease;
}
.fm-train-card:hover {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(16, 185, 129, 0.10);
  transform: translateY(-1px);
}
.fm-div-tab {
  padding: 0.38rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 11px;
  font-weight: 700;
  color: rgba(244, 241, 234, 0.75);
  background: rgba(9, 9, 13, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: all 0.15s ease;
}
.fm-div-tab:hover {
  color: #F4F1EA;
  border-color: rgba(229, 185, 76, 0.45);
}
.fm-div-tab.is-active {
  color: #09090D;
  background: linear-gradient(135deg, #F3CA62 0%, #D9A736 100%);
  border-color: #F3CA62;
  font-weight: 800;
}

/* =====================================================================
 * CLUBX v36-v38 — OpenFootManager Clean UI & ODD Exchange Primitives
 * ===================================================================== */
.ofm-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.ofm-grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}
.ofm-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .ofm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .ofm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ofm-card {
  background: linear-gradient(180deg, rgba(22, 24, 34, 0.96) 0%, rgba(14, 16, 24, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.ofm-card-tight {
  background: rgba(11, 13, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
}
.ofm-subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  background: rgba(9, 11, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
}
.ofm-subtab {
  padding: 0.4rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(244, 241, 234, 0.7);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ofm-subtab:hover {
  color: #F4F1EA;
  background: rgba(255, 255, 255, 0.05);
}
.ofm-subtab.is-active {
  color: #09090D;
  background: linear-gradient(135deg, #F3CA62 0%, #D9A736 100%);
  border-color: #F3CA62;
  font-weight: 800;
}

/* OFM 20 Defined Traits — Category Colored Badges */
.ofm-trait-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  vertical-align: middle;
}
.ofm-trait-phys { background: rgba(59, 130, 246, 0.16); color: #93c5fd; border-color: rgba(59, 130, 246, 0.38); }
.ofm-trait-tech { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.38); }
.ofm-trait-ment { background: rgba(168, 85, 247, 0.16); color: #d8b4fe; border-color: rgba(168, 85, 247, 0.38); }
.ofm-trait-gk   { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border-color: rgba(245, 158, 11, 0.42); }
.ofm-trait-spec { background: rgba(244, 63, 94, 0.16);  color: #fda4af; border-color: rgba(244, 63, 94, 0.40); }

/* OFM Knockout Bracket */
.ofm-bracket-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
@media (min-width: 900px) {
  .ofm-bracket-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ofm-bracket-match {
  background: rgba(10, 12, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  font-size: 11px;
  transition: border-color 0.15s ease;
}
.ofm-bracket-match.is-user {
  border-color: rgba(243, 202, 98, 0.55);
  box-shadow: 0 0 0 1px rgba(243, 202, 98, 0.25);
}
.ofm-bracket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.22rem 0;
}
.ofm-bracket-row.is-winner {
  color: #6ee7b7;
  font-weight: 800;
}

/* FMODD Clean Odds Buttons */
.ofm-odd-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.55rem;
  border-radius: 0.55rem;
  background: rgba(9, 11, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #F4F1EA;
  cursor: pointer;
  transition: all 0.14s ease;
  min-width: 68px;
}
.ofm-odd-btn:hover {
  border-color: rgba(243, 202, 98, 0.65);
  background: rgba(243, 202, 98, 0.12);
}
.ofm-odd-btn.is-selected {
  border-color: #F3CA62;
  background: linear-gradient(135deg, rgba(243, 202, 98, 0.24), rgba(16, 185, 129, 0.18));
  color: #F3CA62;
}
.ofm-odd-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
  font-size: 12.5px;
  color: #F3CA62;
}
.ofm-odd-lbl {
  font-size: 9.5px;
  color: rgba(244, 241, 234, 0.6);
  text-transform: uppercase;
  font-weight: 700;
}

/* OFM Clean Modal */
.ofm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(6px);
}
.ofm-modal-backdrop.hidden {
  display: none !important;
}
.ofm-modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #161822 0%, #0e1018 100%);
  border: 1px solid rgba(243, 202, 98, 0.32);
  border-radius: 1.1rem;
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* =====================================================================
 * CLUBX v46.0 — Unified Executive Layout, Docks & Complete Responsive Grids
 * ===================================================================== */
.clubx-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(20, 22, 32, 0.96) 0%, rgba(11, 13, 20, 0.98) 100%);
  border: 1px solid rgba(229, 185, 76, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 30px rgba(0, 0, 0, 0.38);
}
@media (min-width: 1040px) {
  .clubx-page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.clubx-subnav-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem;
  border-radius: 0.85rem;
  background: rgba(9, 10, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.clubx-subnav-dock::-webkit-scrollbar {
  display: none;
}
.clubx-subnav-dock > button,
.clubx-subnav-dock > a,
.clubx-subnav-dock .ofm-subtab {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 1240px) {
  .clubx-subnav-dock {
    flex-wrap: wrap;
    width: 100%;
  }
}

/* Complete Responsive Grid & Flex Utilities (Fixes all stacked 12-col / 3-col / 4-col layouts) */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .sm\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .sm\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .sm\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .sm\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .sm\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:inline { display: inline !important; }
  .sm\:flex { display: flex !important; }
}

@media (min-width: 720px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .md\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .md\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .md\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .md\:col-span-6 { grid-column: span 6 / span 6 !important; }
  .md\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .md\:col-span-8 { grid-column: span 8 / span 8 !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:items-center { align-items: center !important; }
  .md\:self-end { align-self: flex-end !important; }
  .md\:inline { display: inline !important; }
  .md\:inline-block { display: inline-block !important; }
}

@media (min-width: 820px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
  .lg\:flex-row { flex-direction: row !important; }
  .lg\:items-center { align-items: center !important; }
}

@media (min-width: 1120px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 1460px) {
  .xl\:inline { display: inline !important; }
  .xl\:flex { display: flex !important; }
  .xl\:block { display: block !important; }
}

.clubx-dock-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.2rem;
}

.clubx-matchup-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-radius: 0.95rem;
  background: linear-gradient(90deg, rgba(16, 18, 27, 0.95) 0%, rgba(9, 10, 16, 0.98) 50%, rgba(16, 18, 27, 0.95) 100%);
  border: 1px solid rgba(229, 185, 76, 0.24);
}
@media (min-width: 768px) {
  .clubx-matchup-strip {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

.clubx-tactic-group {
  background: rgba(9, 11, 17, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.85rem;
  padding: 0.85rem;
}
.clubx-tactic-group-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #E5B94C;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}




/* =====================================================================
 * CLUBX v48.0 — Instant Match Broadcast Theater Overlay (Live & Replay)
 * ===================================================================== */
body.clubx-theater-open {
  overflow: hidden !important;
}

body.clubx-theater-open #clubx-topbar {
  z-index: 10 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.clubx-theater-open #app-main {
  isolation: auto !important;
  z-index: 95 !important;
}

.clubx-theater-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#live-match-stage-card.is-theater {
  position: fixed !important;
  inset: 14px !important;
  z-index: 95 !important;
  max-width: 1420px;
  margin: 0 auto !important;
  overflow-y: auto !important;
  background: linear-gradient(180deg, #10121a 0%, #090a0f 100%) !important;
  border: 1.5px solid rgba(229, 185, 76, 0.55) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
  border-radius: 1.15rem !important;
  padding: 0.85rem 1.1rem 1.25rem !important;
  animation: clubxTheaterIn 0.18s ease-out;
}

@keyframes clubxTheaterIn {
  from { opacity: 0; transform: scale(0.985) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#match-theater-topbar {
  display: none;
  position: sticky;
  top: -0.85rem;
  z-index: 25;
  margin: -0.85rem -1.1rem 0.75rem -1.1rem;
  padding: 0.65rem 1.1rem;
  background: rgba(9, 10, 15, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 185, 76, 0.35);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

#live-match-stage-card.is-theater #match-theater-topbar {
  display: flex !important;
}

#live-match-stage-card.is-theater .clubx-matchup-strip,
#live-match-stage-card.is-theater #match-week-badge,
#live-match-stage-card.is-theater #match-status-badge {
  display: none !important;
}

#live-match-stage-card.is-theater > div > div.flex.justify-between.items-center.mb-4 {
  display: none !important;
}

#live-match-stage-card.is-theater #pitch-stage-container {
  margin-top: 0.45rem !important;
}

#live-match-stage-card.is-theater #pitch-iframe {
  height: min(76vh, 690px) !important;
}

/* =====================================================================
 * CLUBX v54.0 — Fieldroom + Open-Football + OpenFootManager Pro Suite
 * ===================================================================== */
html {
  scrollbar-gutter: stable;
}

body,
table,
.tabular-nums,
.font-mono {
  font-variant-numeric: tabular-nums;
}

/* 1. Global Breadcrumbs (Country -> League -> Club -> Player) */
.fm-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  margin-bottom: 0.85rem;
  background: rgba(14, 17, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  font-size: 11.5px;
}
.fm-bc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  border-radius: 0.35rem;
  color: #cbd5e1;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.14s ease;
}
.fm-bc-chip:hover {
  color: #F4F1EA;
  background: rgba(229, 185, 76, 0.12);
  border-color: rgba(229, 185, 76, 0.35);
}
.fm-bc-chip.is-current {
  color: #E5B94C;
  background: rgba(229, 185, 76, 0.12);
  border-color: rgba(229, 185, 76, 0.28);
  font-weight: 800;
}
.fm-bc-sep {
  color: rgba(244, 241, 234, 0.32);
  font-size: 10px;
  user-select: none;
}

/* 2. Kit-Tinted Header (.fm-header-colored + .kit-hairline) */
.fm-header-colored {
  --kit-primary: #ef0107;
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--kit-primary) 22%, #141824) 0%, #121520 55%, #0c0e16 100%) !important;
  border: 1px solid color-mix(in srgb, var(--kit-primary) 38%, rgba(255, 255, 255, 0.10)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  position: relative;
  overflow: hidden;
}
.kit-hairline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--kit-primary, #E5B94C) 0%, color-mix(in srgb, var(--kit-primary, #E5B94C) 45%, #F4F1EA) 55%, transparent 100%);
  pointer-events: none;
}

/* 3. Fieldroom Flat 4-Cell KPI Strip (.summary-band) */
.summary-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.6rem;
  background: #0e121b;
  overflow: hidden;
}
@media (min-width: 640px) {
  .summary-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.summary-band-cell {
  padding: 0.65rem 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}
@media (min-width: 640px) {
  .summary-band-cell {
    border-bottom: none;
  }
  .summary-band-cell:last-child {
    border-right: none;
  }
}
.summary-band-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a96a3;
  font-weight: 700;
}
.summary-band-val {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 15.5px;
  font-weight: 800;
  margin-top: 2px;
}

/* 4. Fieldroom + Open-Football High-Density Flat Tables (.fm-clean-table) */
.fm-clean-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.fm-clean-table thead th {
  background: #141b24 !important;
  color: #8494a4 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  padding: 0.52rem 0.75rem !important;
  border-bottom: 1px solid #263340 !important;
  box-shadow: none !important;
}
.fm-clean-table tbody tr {
  border-bottom: 1px solid rgba(38, 51, 64, 0.65);
  background: transparent;
  transition: background-color 0.1s ease;
}
.fm-clean-table tbody tr:hover {
  background-color: rgba(34, 48, 60, 0.52) !important;
}
.fm-clean-table tbody td {
  padding: 0.46rem 0.75rem !important;
  vertical-align: middle;
}

/* 5. Open-Football Position Pills (.trf-pill) & Status Badges (.fm-badge-*) */
.trf-pill {
  display: inline-block;
  min-width: 36px;
  padding: 2.5px 6px;
  border-radius: 3px;
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--pill, #cbd5e1);
  background: color-mix(in srgb, var(--pill, #cbd5e1) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--pill, #cbd5e1) 30%, transparent);
}
.trf-pill-gk  { --pill: #f2b84b; }
.trf-pill-def { --pill: #5aa7f0; }
.trf-pill-mid { --pill: #49c08a; }
.trf-pill-fwd { --pill: #f06b5a; }

.fm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5px 5px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  vertical-align: middle;
}
.fm-badge-inj { background: rgba(167, 18, 20, 0.32); color: #fca5a5; }
.fm-badge-loa { background: rgba(0, 96, 110, 0.36); color: #7dd3fc; }
.fm-badge-lst { background: rgba(42, 122, 63, 0.32); color: #86efac; }
.fm-badge-wnt { background: rgba(180, 83, 9, 0.30); color: #fcd34d; }
.fm-badge-unh { background: rgba(190, 18, 60, 0.30); color: #fda4af; }
.fm-badge-yth { background: rgba(46, 125, 50, 0.28); color: #bbf7d0; }
.fm-badge-cap {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 9999px;
  background: #facc15;
  color: #09090D;
  font-weight: 900;
}
.fm-badge-vcap {
  width: 17px;
  height: 16px;
  padding: 0 2px;
  border-radius: 9999px;
  background: #475569;
  color: #f8fafc;
  font-size: 8.5px;
  font-weight: 800;
}

/* 6. OpenFootManager 5-Tier RatingChip */
.ofm-rtg-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
}
.rtg-tier-s { background: rgba(234, 179, 8, 0.20); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.42); }
.rtg-tier-a { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.38); }
.rtg-tier-b { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.34); }
.rtg-tier-c { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.32); }
.rtg-tier-d { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.32); }

/* 7. OpenFootManager Squad Depth Coverage Strip */
.ofm-depth-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.ofm-depth-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.52rem;
  border-radius: 0.38rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid transparent;
}
.ofm-depth-chip.is-covered   { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.32); }
.ofm-depth-chip.is-thin      { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border-color: rgba(245, 158, 11, 0.34); }
.ofm-depth-chip.is-uncovered { background: rgba(239, 68, 68, 0.18);  color: #fca5a5; border-color: rgba(239, 68, 68, 0.40); }

/* 8. FM2017 Player Profile (3-Column Skills Grid + .td_1..20 + Mini-Pitch) */
.fm-ph-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--kit-primary, #e11d48) 22%, #151c24) 0%, #141c24 60%, #10161d 100%);
  border: 1px solid #263340;
}
#app-main:has(#player-modal:not(.hidden)) {
  isolation: auto !important;
  z-index: 140 !important;
}
#player-modal {
  z-index: 160 !important;
  align-items: flex-start !important;
  padding-top: 1.25rem !important;
  overflow-y: auto !important;
}
#pm-modal-card {
  max-height: calc(100dvh - 2.5rem) !important;
}
@media (min-width: 760px) {
  .fm-ph-banner {
    grid-template-columns: 92px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}
.fm-face-frame {
  width: 88px;
  height: 110px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #141c24;
  border: 1px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}
.fm-face-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}
.fm-skills-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 860px) {
  .fm-skills-layout {
    grid-template-columns: 188px minmax(0, 1fr);
    align-items: start;
  }
}
.fm-skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .fm-skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.fm-skill-col {
  background: linear-gradient(180deg, #18222a 0%, #141c23 100%);
  border: 1px solid #263340;
  border-radius: 0.45rem;
  overflow: hidden;
}
.fm-skill-col-head {
  padding: 0.38rem 0.6rem;
  background: linear-gradient(180deg, #202c36 0%, #1b252e 100%);
  border-bottom: 1px solid #263340;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa3b3;
}
.fm-skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.22rem 0.55rem;
  border-bottom: 1px solid rgba(38, 51, 64, 0.45);
  font-size: 11.5px;
  color: #cfd8e0;
}
.fm-skill-row:last-child {
  border-bottom: none;
}
.fm-skill-row.is-key {
  background: rgba(229, 185, 76, 0.07);
}
.fm-skill-val {
  min-width: 26px;
  padding: 1px 5px;
  border-radius: 3px;
  text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 800;
}
.td_1, .td_2, .td_3, .td_4, .td_5 {
  color: #6b7682;
  background: rgba(60, 66, 72, 0.18);
}
.td_6, .td_7, .td_8, .td_9 {
  color: #9ba6b2;
  background: rgba(120, 128, 136, 0.12);
}
.td_10, .td_11, .td_12 {
  color: #9ec070;
  background: rgba(138, 156, 106, 0.14);
}
.td_13, .td_14, .td_15 {
  color: #72c45a;
  background: rgba(116, 176, 96, 0.16);
}
.td_16, .td_17, .td_18 {
  color: #52d13f;
  background: rgba(92, 184, 74, 0.18);
}
.td_19, .td_20 {
  color: #38d828;
  background: rgba(56, 216, 40, 0.20);
  text-shadow: 0 0 10px rgba(56, 216, 40, 0.34);
}

/* Mini-Pitch Position Map (.fp-pitch) */
.fp-pitch {
  position: relative;
  width: 100%;
  height: 236px;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #145337 0%, #196845 50%, #145337 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.fp-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  pointer-events: none;
}
.fp-dot i {
  width: 11px;
  height: 11px;
  border-radius: 9999px;
  display: block;
  border: 1.5px solid rgba(9, 9, 13, 0.75);
}
.fp-dot span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.fp-dot.fp-primary i {
  width: 14px;
  height: 14px;
  background: #38d828;
  box-shadow: 0 0 8px rgba(56, 216, 40, 0.85);
  border-color: #ffffff;
}
.fp-dot.fp-secondary i {
  background: #f2b84b;
  box-shadow: 0 0 5px rgba(242, 184, 75, 0.55);
}
.fp-dot.fp-off i {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.16);
  border-color: transparent;
}
.fp-dot.fp-off span {
  color: rgba(255, 255, 255, 0.35);
}

/* 9. Printed Broadsheet Weekly Newspaper (.np-sheet from open-football) */
.np-sheet {
  --np-paper: #f2ede2;
  --np-ink: #191815;
  --np-muted: #57534a;
  --np-rule: #2c2923;
  --np-hair: rgba(44, 41, 35, 0.24);
  background-color: var(--np-paper);
  background-image:
    radial-gradient(rgba(25, 24, 21, 0.035) 1px, transparent 0);
  background-size: 4px 4px;
  color: var(--np-ink);
  border: 1px solid #cbbfa8;
  border-radius: 4px;
  padding: 1.35rem 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
}
.np-nameplate {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 3px solid var(--np-rule);
  position: relative;
}
.np-nameplate::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: var(--np-rule);
}
.np-masthead {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--np-ink) !important;
  margin: 0;
  text-transform: uppercase;
}
.np-ear {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--np-muted);
  line-height: 1.3;
  text-transform: uppercase;
}
.np-folio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.32rem 0;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--np-hair);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--np-muted);
}
.np-folio-mood {
  padding: 1px 7px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.np-mood-buoyant .np-folio-mood { color: #166534; }
.np-mood-steady .np-folio-mood  { color: #1e40af; }
.np-mood-tense .np-folio-mood   { color: #991b1b; }
.np-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 840px) {
  .np-body {
    grid-template-columns: minmax(0, 2.1fr) minmax(220px, 1fr);
  }
}
.np-main {
  padding-right: 0;
}
@media (min-width: 840px) {
  .np-main {
    padding-right: 1.15rem;
    border-right: 1px solid var(--np-hair);
  }
}
.np-kicker {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b261d;
  margin: 0 0 0.25rem;
}
.np-headline {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--np-ink) !important;
  margin: 0 0 0.55rem;
}
.np-lead-body {
  font-size: 13.5px;
  line-height: 1.58;
  color: #26241f;
  margin: 0;
}
.np-lead-body::first-letter {
  float: left;
  font-size: 2.55rem;
  line-height: 0.88;
  font-weight: 900;
  padding-right: 0.38rem;
  padding-top: 0.1rem;
  color: var(--np-ink);
}
.np-splits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--np-hair);
}
@media (min-width: 640px) {
  .np-splits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.np-split-story h4 {
  font-family: Georgia, serif;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.22;
  margin: 0.15rem 0 0.35rem;
  color: var(--np-ink);
}
.np-split-story p {
  font-size: 12.2px;
  line-height: 1.48;
  color: #35322b;
  margin: 0;
}
.np-rail {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.np-figure {
  margin: 0;
  padding: 0.55rem;
  background: #e7e0d2;
  border: 1px solid rgba(44, 41, 35, 0.25);
}
.np-caption {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  line-height: 1.35;
  color: #2f2c26;
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--np-hair);
}
.np-box {
  border-top: 2px solid var(--np-rule);
  padding-top: 0.45rem;
}
.np-box-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--np-ink);
  margin: 0 0 0.4rem;
}
.np-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.24rem 0;
  border-bottom: 1px dotted rgba(44, 41, 35, 0.26);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  color: #22201c;
}
.np-story-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  border-bottom: 1px solid rgba(25, 24, 21, 0.55);
  cursor: pointer;
}
.np-story-btn:hover {
  color: #8b261d;
  border-bottom-color: #8b261d;
}
.np-band {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 2px solid var(--np-rule);
}
.np-brief-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
}
@media (min-width: 720px) {
  .np-brief-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =====================================================================
 * CLUBX v57.0 — Responsive 100dvh FM App Shell (Single Scroll, Zero Overlap)
 * ===================================================================== */
html, body {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

.fm-app-shell {
  display: flex;
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #0b0f17;
}

/* Left FM Sidebar (#121822 / #151c22) */
.fm-left-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #121923 0%, #0d121a 100%);
  border-right: 1px solid #1f2b38;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  z-index: 70;
  transition: width 0.18s ease, transform 0.2s ease;
  user-select: none;
}
body.fm-sidebar-collapsed .fm-left-sidebar {
  width: 60px;
}
body.fm-sidebar-collapsed .fm-sb-brand {
  justify-content: center;
  padding: 0.5rem 0.25rem;
}
body.fm-sidebar-collapsed #clubx-logo-link {
  display: none !important;
}
body.fm-sidebar-collapsed .fm-sb-hide-collapsed {
  display: none !important;
}
body.fm-sidebar-collapsed .fm-sb-item {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

#btn-mobile-sidebar {
  display: none;
}
@media (max-width: 1023px) {
  #btn-mobile-sidebar {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .fm-left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.75);
  }
  body.fm-mobile-nav-open .fm-left-sidebar {
    transform: translateX(0);
  }
  body.fm-mobile-nav-open #fm-mobile-backdrop {
    display: block !important;
  }
  /* Em ecrãs estreitos (<= 1023px), recolher o menu fecha a gaveta em vez de sobrepor 60px em cima da página */
  body.fm-sidebar-collapsed:not(.fm-mobile-nav-open) .fm-left-sidebar {
    width: 220px !important;
    transform: translateX(-100%) !important;
  }
  body.fm-sidebar-collapsed:not(.fm-mobile-nav-open) #fm-mobile-backdrop {
    display: none !important;
  }
  body.fm-mobile-nav-open .fm-left-sidebar {
    width: 220px !important;
    transform: translateX(0) !important;
  }
}

.fm-sb-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #1f2b38;
  height: 52px;
  flex-shrink: 0;
}
.fm-sb-club-card {
  margin: 0.5rem 0.55rem 0.3rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--kit-primary, #e5b94c) 22%, #161f2c) 0%, #121822 100%);
  border: 1px solid color-mix(in srgb, var(--kit-primary, #e5b94c) 38%, rgba(255,255,255,0.08));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.fm-sb-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.3rem 0.45rem 0.75rem;
  scrollbar-width: none;
}
.fm-sb-scroll::-webkit-scrollbar {
  display: none;
}
.fm-sb-group-lbl {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #64748b;
  padding: 0.5rem 0.55rem 0.22rem;
}
.fm-sb-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  margin-bottom: 1px;
  border-radius: 0.42rem;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-left: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
  text-align: left;
}
.fm-sb-item:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}
.fm-sb-item.is-active {
  color: #F4F1EA;
  font-weight: 800;
  background: rgba(229, 185, 76, 0.12);
  border-left-color: #E5B94C;
}
.fm-sb-item-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.fm-sb-icon {
  width: 18px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Right Workspace Column (Fixed 52px Header + Single Vertical Scroll Main Area) */
.fm-workspace-col {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.clubx-topbar {
  position: relative !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  background: #101620 !important;
  border-bottom: 1px solid #1f2b38 !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  z-index: 45;
}

/* ========================================== */
/* AAA BROADCAST LANDING PAGE (#view-home)    */
/* ========================================== */
.clubx-hero-stage {
  background-image:
    linear-gradient(100deg, rgba(9, 9, 13, 0.96) 0%, rgba(9, 9, 13, 0.85) 46%, rgba(9, 9, 13, 0.48) 100%),
    radial-gradient(circle at 82% 18%, rgba(229, 185, 76, 0.22), transparent 52%),
    url('images/clubx-hero-stadium.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(229, 185, 76, 0.36);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.clubx-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 1024px) {
  .clubx-hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  }
}
.clubx-hero-terminal {
  background: rgba(11, 14, 22, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.clubx-cta-gold {
  background: linear-gradient(135deg, #f3cd69 0%, #e5b94c 60%, #c8962e 100%);
  color: #09090d;
  box-shadow: 0 8px 24px rgba(229, 185, 76, 0.34);
}
.clubx-cta-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.clubx-role-card {
  background: linear-gradient(180deg, rgba(20, 23, 34, 0.94) 0%, rgba(12, 14, 21, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.clubx-role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}
.clubx-role-gold { border-top: 3px solid #e5b94c; }
.clubx-role-gold:hover { border-color: rgba(229, 185, 76, 0.55); }
.clubx-role-emerald { border-top: 3px solid #34d399; }
.clubx-role-emerald:hover { border-color: rgba(52, 211, 153, 0.55); }
.clubx-role-sky { border-top: 3px solid #38bdf8; }
.clubx-role-sky:hover { border-color: rgba(56, 189, 248, 0.55); }

/* Animated Bloomberg/Broadcast Club Ticker on Landing Page */
.clubx-ticker-wrap {
  overflow: hidden;
  position: relative;
  background: linear-gradient(90deg, rgba(11, 14, 22, 0.96), rgba(18, 22, 34, 0.96), rgba(11, 14, 22, 0.96));
  border: 1px solid rgba(229, 185, 76, 0.24);
}
.clubx-ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: clubxTickerScroll 34s linear infinite;
}
.clubx-ticker-wrap:hover .clubx-ticker-track {
  animation-play-state: paused;
}
@keyframes clubxTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Full-Screen Landing Mode (hides game sidebar on Presentation Home /) */
body.clubx-landing-mode #fm-desktop-sidebar,
body.clubx-landing-mode #btn-mobile-sidebar,
body.clubx-landing-mode #fm-global-breadcrumbs,
body.clubx-landing-mode #topbar-club-pill {
  display: none !important;
}
body.clubx-landing-mode #view-home {
  max-width: 1320px;
  margin: 0 auto;
}
body.clubx-landing-mode #home-landing-brand {
  display: flex !important;
}

/* Whitepaper Editorial Cards */
.wp-section {
  background: linear-gradient(180deg, rgba(18, 21, 32, 0.94) 0%, rgba(11, 13, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
}
.wp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(229, 185, 76, 0.16);
  border: 1px solid rgba(229, 185, 76, 0.4);
  color: #e5b94c;
  font-family: ui-monospace, monospace;
  font-weight: 900;
  font-size: 12px;
}
.clubx-topbar-inner {
  width: 100%;
  max-width: none !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

/* ALWAYS hide redundant legacy horizontal nav (Sidebar + ☰ Drawer replaces it at all widths!) */
#clubx-main-nav {
  display: none !important;
}

.fm-header-breadcrumbs {
  margin-bottom: 0 !important;
  padding: 0.2rem 0.5rem !important;
  background: rgba(9, 12, 18, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  max-height: 34px;
}
.fm-header-breadcrumbs .fm-bc-crumb,
.fm-header-breadcrumbs .fm-bc-sep {
  white-space: nowrap !important;
  flex-shrink: 0;
}
@media (max-width: 1220px) {
  .fm-header-breadcrumbs .fm-bc-right {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .fm-header-breadcrumbs {
    display: none !important;
  }
}

.fm-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #34d399;
  color: #051b11;
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.fm-continue-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-0.5px);
}

/* SINGLE Vertical Scroll Container (#app-main) — NO nested vertical scrollbars! */
#app-main {
  flex: 1 1 auto;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 10px 14px 20px !important;
  overscroll-behavior: contain;
}
#app-main > div {
  max-width: none !important;
  padding: 0 !important;
}

/* Compact headers & remove redundant sub-tab bar on desktop where Left Sidebar is visible */
.clubx-page-header {
  padding: 0.55rem 0.9rem !important;
  border-radius: 0.7rem !important;
  box-shadow: none !important;
  margin-bottom: 0.5rem !important;
}
#club-hub-header-card {
  padding: 0.65rem 0.95rem !important;
  margin-bottom: 0.55rem !important;
  border-radius: 0.7rem !important;
}
#club-hub-header-card .summary-band {
  margin-top: 0.5rem !important;
}
#club-hub-header-card .summary-band-cell {
  padding: 0.36rem 0.65rem !important;
}
#club-subtabs-bar {
  margin-bottom: 0.55rem !important;
}
@media (min-width: 1024px) {
  /* Só esconde no desktop as barras que já existem no menu lateral (Clube);
     mantém visíveis os sub-separadores exclusivos de Agenda, Competições, Bolsa e Carreira! */
  #topbar-club-pill,
  #club-subtabs-bar {
    display: none !important;
  }
}

/* Single-Scroll Tables (ONLY horizontal scroll when narrow; NEVER nested vertical scroll!) */
.fm-table-scroll,
#comp-panel-standings .overflow-x-auto,
#market-table-card .overflow-x-auto,
#econ-panel-wallet .overflow-x-auto {
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: auto;
}
#transfers-grid,
#calendar-weeks-grid,
#manager-elections-grid {
  max-height: none !important;
  overflow-y: visible !important;
}
.fm-clean-table thead th {
  position: sticky;
  top: 0;
  z-index: 8;
}

/* Live Match Stage inside #cal-tab-live fits viewport cleanly on load */
#cal-tab-live #pitch-iframe {
  height: calc(100dvh - 155px) !important;
  min-height: 510px !important;
}
#cal-tab-live .clubx-matchup-strip {
  padding: 0.45rem 0.75rem !important;
  margin-bottom: 0.35rem !important;
}
#cal-tab-live #live-server-bar {
  margin-top: 0.35rem !important;
  padding: 0.35rem 0.65rem !important;
}

/* Ensure custom grid helpers never override Tailwind .hidden */
#club-academy-training-box.hidden,
#club-squad-roster-pane.hidden,
.fm-two-col-wide.hidden,
.fm-two-col-eq.hidden,
.cal-view-panel.hidden {
  display: none !important;
}

/* v61: Compact spacing for Standings (/competitions) & Matchday Agenda (/stats) */
#view-competitions table th,
#view-competitions table td {
  padding-top: 0.34rem !important;
  padding-bottom: 0.34rem !important;
}
#view-stats #unified-calendar-panel {
  padding: 0.85rem 1rem !important;
  margin-bottom: 0.75rem !important;
}
#view-stats .clubx-page-header,
#view-competitions .clubx-page-header {
  padding-bottom: 0.45rem !important;
  margin-bottom: 0.55rem !important;
}
