/* -- EarnFlex FlexBoard v4 ----------------------------------------------- */
/* Color strategy: brand colors fixed. Surfaces/text defer to BuddyBoss    */
/* theme vars so dark/light mode toggle works automatically.                */
/* BB exposes: --bb-content-background-color, --bb-body-background-color,  */
/* --bb-body-text-color, --bb-body-secondary-text-color, --bb-border-color */
:root {
  --efb-purple:   #a800ff;
  --efb-purple20: rgba(168,0,255,0.20);
  --efb-gold:     #f5c518;
  --efb-green:    #15803d;

  /* Surfaces - inherit from BuddyBoss, fallback to dark */
  --efb-bg:  var(--bb-body-background-color,    #0a0a0a);
  --efb-s1:  var(--bb-content-background-color, #141414);
  --efb-s2:  var(--bb-content-background-color, #1c1c1c);
  --efb-s3:  var(--bb-border-color,             #272727);

  /* Text - inherit from BuddyBoss, fallback */
  --efb-txt:   var(--bb-body-text-color,           #e8e8e8);
  --efb-muted: var(--bb-body-secondary-text-color, #777);
  --efb-dim:   var(--bb-body-secondary-text-color, #555);

  /* Border - inherit from BuddyBoss, fallback */
  --efb-bdr: var(--bb-border-color, rgba(255,255,255,0.07));
}

.ef-flexboard {
  background: transparent;
  color: var(--efb-txt);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  position: relative;
  overflow-x: hidden;
}

/* -- NAV ------------------------------------------------------------------- */
.efb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--efb-s1);
  border-bottom: 1px solid #2c3236;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.efb-npill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 88px;
  height: 44px;
  padding: 0 12px 0 14px;
  background: var(--efb-s2);
  border: 1px solid #2c3236;
  border-radius: 22px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
  color: var(--efb-muted);
}

.efb-npill.efb-active {
  border-color: var(--efb-purple);
  border-width: 2px;
  background: var(--efb-purple20);
  color: var(--efb-purple);
}

.efb-npill .efb-icon { width: 22px; height: 22px; transition: stroke 0.15s; }
.efb-npill .efb-caret { width: 16px; height: 16px; transition: stroke 0.15s; }
.efb-npill.efb-active .efb-icon,
.efb-npill.efb-active .efb-caret { stroke: var(--efb-purple); }

/* Split pill */
.efb-npill-split {
  display: flex;
  align-items: stretch;
  width: 88px;
  height: 44px;
  background: var(--efb-purple20);
  border: 1px solid var(--efb-purple);
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--efb-purple);
}
.efb-npill-split__left,
.efb-npill-split__right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--efb-purple);
  padding: 0;
}
.efb-npill-split__left:hover,
.efb-npill-split__right:hover { background: rgba(168,0,255,0.1); }
.efb-npill-split__divider {
  width: 1px;
  background: rgba(168,0,255,0.35);
  margin: 6px 0;
  flex-shrink: 0;
}

/* -- GRADE BAR ------------------------------------------------------------- */
.efb-grade-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 14px;
  background: var(--efb-s1);
  border-bottom: 1px solid #2c3236;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 499;
  scrollbar-width: none;
}
.efb-grade-bar::-webkit-scrollbar { display: none; }

/* Offset set by JS - hero margin-top applied dynamically */
.efb-content-offset { padding-top: 0; }
.efb-hero {
  margin-top: 120px; /* mobile offset: below bb-header + efb-nav + efb-grade-bar */
}
#efb-scroll-spacer { display: block; width: 100%; flex-shrink: 0; min-height: 0; }

/* Desktop: center nav width to avoid sidebar conflict */
/* Desktop: sticky nav, larger cards */
@media (min-width: 769px) {
  /* Switch to sticky on desktop so BB header natural flow handles offset */
  .efb-nav {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    transform: none !important;
    max-width: none !important;
    z-index: 500 !important;
  }
  .efb-grade-bar {
    position: sticky !important;
    top: 54px !important; /* nav height fallback - overridden by JS */
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    transform: none !important;
    max-width: none !important;
    z-index: 499 !important;
  }
  /* Desktop hero - natural height, sticky flow handles offset */
  .efb-hero { margin-top: 0 !important; }
  .efb-hero__img {
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  /* Cards bigger on desktop */
  .efb-card     { flex: 0 0 160px; max-width: 160px; }
  .efb-card--lg { flex: 0 0 220px; max-width: 220px; }
  .efb-ad-card  { flex: 0 0 160px; max-width: 160px; }
  .efb-npill       { width: 100px; height: 44px; }
  .efb-npill-split { width: 100px; height: 44px; }
  /* Center nav pills and grade tabs on desktop */
  .efb-nav { justify-content: center; }
  .efb-grade-bar { justify-content: center; }
}

.efb-gtab {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 2px solid #2c3236;
  color: var(--efb-txt);
  background: var(--efb-s2);
  white-space: nowrap;
  transition: all 0.15s;
  line-height: 1;
}
.efb-gtab--group { border-style: dashed; }
.efb-gtab--on { color: #fff !important; background: var(--efb-purple) !important; border-color: var(--efb-purple) !important; font-weight: 800; }

.efb-portal-tab {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #2c3236;
  color: var(--efb-txt);
  background: var(--efb-s2);
  white-space: nowrap;
  transition: all 0.15s;
  margin-left: 4px;
}
.efb-portal-tab--on {
  border-color: var(--efb-green);
  color: var(--efb-green);
  background: rgba(21,128,61,0.1);
}

/* -- HERO ------------------------------------------------------------------ */
.efb-hero {
  position: relative;
  overflow: hidden;
  background: #000;
}
.efb-hero__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.efb-hero__grad {
  display: none; /* removed -- using text-shadow instead */
}
.efb-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px 16px;
}
.efb-hero__eyebrow {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--efb-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  border: 1px solid var(--efb-gold);
  border-radius: 3px;
  padding: 2px 7px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.efb-hero__sponsor-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.efb-hero__sponsor-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.efb-hero__sponsor-pill {
  height: 18px;
  background: rgba(0,0,0,0.5);
  border-radius: 3px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}
.efb-hero__cta-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.efb-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--efb-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  padding: 7px 16px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(168,0,255,0.5);
}
.efb-btn-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  vertical-align: middle;
}
.efb-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* -- PAGES ----------------------------------------------------------------- */
.efb-page { background: transparent; }
.efb-page[hidden] { display: none !important; }

/* -- SECTION / ROW --------------------------------------------------------- */
.efb-section { }
.efb-hero + .efb-content-offset > .efb-page > .efb-section:first-child,
#efb-page-main > .efb-section:first-child { margin-top: 0; }
.efb-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px 6px;
  gap: 8px;
}
.efb-section__left { display: flex; flex-direction: column; gap: 2px; }
.efb-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--efb-txt);
  letter-spacing: -0.3px;
}
.efb-section__title--lg { font-size: 22px; }
.efb-section__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
  align-items: center;
}
.efb-grade-pill,
.efb-filter-pill,
.efb-atc-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: #2c3236;
  border: 1px solid #495258;
  color: #a0adb3;
}
.efb-section__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.efb-icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2c3236;
  border-radius: 50%;
  background: #2c3236;
  cursor: pointer;
  color: #a0adb3;
  transition: all 0.15s;
}
.efb-icon-btn:hover { border-color: var(--efb-purple); color: var(--efb-purple); }
.efb-icon-btn--on { border-color: var(--efb-purple); color: var(--efb-purple); background: var(--efb-purple20); }

/* -- TRACK (horizontal scroll) --------------------------------------------- */
.efb-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 8px 14px;
  scrollbar-width: none;
}
.efb-track::-webkit-scrollbar { display: none; }

/* Featured top row -- edge to edge like Netflix hero row */
.efb-track--featured {
  padding: 0 0 14px 0;
  gap: 4px;
}
.efb-track--featured .efb-card--lg {
  border-radius: 0;
}
.efb-track--featured .efb-card--lg:first-child {
  border-radius: 0 6px 6px 0;
}
.efb-track--featured .efb-card--lg:last-child {
  border-radius: 6px 0 0 6px;
  margin-right: 14px;
}
.efb-track--featured .efb-ad-card {
  flex: 0 0 39vw;
  min-width: 140px;
  max-width: 220px;
}

/* -- CARD ------------------------------------------------------------------ */
.efb-card {
  flex: 0 0 27vw;
  min-width: 90px;
  max-width: 140px;
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: var(--efb-s2);
  border: 1px solid var(--efb-bdr);
  transition: none;
  text-decoration: none;
}
.efb-card--lg {
  flex: 0 0 39vw;
  min-width: 140px;
  max-width: 220px;
}
.efb-card:hover { border-color: rgba(255,255,255,0.15); }

.efb-card__cover {
  width: 100%;
  aspect-ratio: 9/16;
  position: relative;
  overflow: hidden;
  background: var(--efb-s2);
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

/* Rank badge */
.efb-card__rank {
  position: absolute !important; top: 5px !important; left: 5px !important; z-index: 6 !important;
  background: rgba(0,0,0,0.85) !important;
  border: 1px solid rgba(245,197,24,0.6) !important;
  border-radius: 4px !important; padding: 3px 8px !important;
  font-size: 22px !important; font-weight: 900 !important; color: #f5c518 !important; line-height: 1 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9) !important;
}
.efb-card__rank--1 { background: rgba(245,197,24,0.2) !important; border-color: #f5c518 !important; }

/* Bookmark - bare SVG, no box */
.efb-card__bookmark {
  all: unset !important;
  position: absolute !important; top: 6px !important; right: 6px !important; z-index: 6 !important;
  width: 22px !important; height: 22px !important;
  background: none !important; border: none !important;
  border-radius: 0 !important; box-shadow: none !important; padding: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer !important;
}
.efb-card__bookmark:hover { opacity: 0.8 !important; }

/* Portal tag */
.efb-card__portal {
  position: absolute; top: 30px; left: 6px; z-index: 6;
  font-size: 7px; font-weight: 700;
  background: rgba(21,128,61,0.9); color: #fff;
  border-radius: 3px; padding: 1px 4px;
}

/* Gradient */
.efb-card__grad {
  position: absolute; bottom: 0; left: 0; right: 0; height: 72%;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.65) 45%, transparent 100%);
  pointer-events: none; z-index: 2;
}

/* Score/badge - centered at 50%, bottom edge at midpoint */
.efb-card__mid {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-100%);
  padding-bottom: 6px;
  z-index: 4;
  display: flex; justify-content: center;
}

/* Score circle */
.efb-card__score {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
  letter-spacing: -0.5px; line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ATC award badge circle */
.efb-card__badge {
  width: 54px; height: 54px; border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(245,197,24,0.5);
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
}
.efb-card__badge img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

/* Avatar + name + pos grouped at bottom */
.efb-card__info {
  position: absolute !important;
  bottom: 8px !important; left: 0 !important; right: 0 !important;
  z-index: 4 !important;
  display: flex !important; flex-direction: column !important;
  align-items: center !important; gap: 0 !important;
}
.efb-card__avatar {
  width: 36px !important; height: 36px !important; border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  background: #2a2a2a !important; overflow: hidden !important;
  margin-bottom: 6px !important; flex-shrink: 0 !important;
  position: relative !important; display: block !important;
  object-fit: unset !important;
}
.efb-card__avatar img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block !important;
}
.efb-card__name {
  font-size: 11px !important; font-weight: 600 !important; color: #fff !important;
  text-align: center !important; line-height: 1.3 !important;
  white-space: nowrap !important; overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important; padding: 0 4px !important;
  box-sizing: border-box !important; margin-bottom: 3px !important;
  position: relative !important; bottom: auto !important; left: auto !important; right: auto !important;
}
.efb-card__pos {
  font-size: 9px !important; font-weight: 600 !important;
  color: rgba(255,255,255,0.7) !important;
  text-align: center !important;
  position: relative !important; display: block !important;
}

/* -- FLEXPASS AD CARD /* -- FLEXPASS AD CARD ------------------------------------------------------ */
.efb-ad-card {
  flex: 0 0 27vw;
  min-width: 90px;
  max-width: 140px;
  text-decoration: none;
  display: block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(168,0,255,0.3);
  background: linear-gradient(145deg, #1a0033 0%, #2d0060 60%, #1a0033 100%);
}
.efb-ad-card__inner {
  width: 100%;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
}
.efb-ad-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 2px;
}
.efb-ad-card__headline {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--efb-gold);
  text-align: center;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.efb-ad-card__sub {
  font-size: 8px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.4;
  padding: 0 4px;
  white-space: nowrap;
}
.efb-ad-card__btn {
  margin-top: 4px;
  background: var(--efb-purple);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 4px 10px;
  box-shadow: 0 2px 8px rgba(168,0,255,0.45);
}

/* -- DIVIDER --------------------------------------------------------------- */
.efb-divider {
  height: 1px;
  background: var(--efb-bdr);
  margin: 2px 16px;
}

/* -- OVERLAY / SHEET ------------------------------------------------------- */
.efb-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 498;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: flex-start;
  padding-top: 96px;
}
.efb-overlay[hidden] { display: none !important; }

.efb-sheet {
  background: var(--efb-s1);
  border-radius: 0 0 16px 16px;
  width: 100%;
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--efb-bdr);
}
.efb-sheet::-webkit-scrollbar { display: none; }
.efb-sheet__inner { padding: 16px 16px 28px; }
.efb-sheet__title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.efb-sheet__sub {
  font-size: 11px;
  color: var(--efb-muted);
  margin-bottom: 12px;
}
.efb-sheet__clear-btn {
  background: none;
  border: 1px solid var(--efb-bdr);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--efb-muted);
  cursor: pointer;
}

/* -- FILTER SHEET ---------------------------------------------------------- */


/* -- TOP / METLE SHEET ITEMS ----------------------------------------------- */
.efb-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 7px;
  cursor: pointer;
  margin-bottom: 4px;
  background: var(--efb-s2);
  border: 1px solid var(--efb-bdr);
  transition: all 0.12s;
}
.efb-list-item:hover { border-color: rgba(255,255,255,0.15); }
.efb-list-item--on { background: var(--efb-purple20); border-color: var(--efb-purple); }
.efb-list-item__name { font-size: 14px; font-weight: 700; color: var(--efb-txt); }
.efb-list-item--on .efb-list-item__name { color: var(--efb-purple); }
.efb-list-item__dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--efb-dim); transition: all 0.12s; }
.efb-list-item__dot--on { background: var(--efb-purple); border-color: var(--efb-purple); }
.efb-list-item__mode {
  font-size: 10px; font-weight: 600; padding: 2px 7px;
  border-radius: 10px; background: rgba(255,255,255,0.07); color: var(--efb-muted);
}
.efb-list-item--on .efb-list-item__mode { background: var(--efb-purple20); color: var(--efb-purple); }

/* -- WATCHLIST SHEET ------------------------------------------------------- */
.efb-wl-empty { text-align: center; padding: 30px 20px; color: var(--efb-muted); font-size: 13px; }
.efb-wl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--efb-bdr);
  cursor: pointer;
}
.efb-wl-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.efb-wl-info { flex: 1; }
.efb-wl-name { font-size: 13px; font-weight: 700; color: var(--efb-txt); }
.efb-wl-meta { font-size: 11px; color: var(--efb-muted); margin-top: 1px; }
.efb-wl-remove {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--efb-bdr); background: none;
  color: var(--efb-muted); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* -- POSITION / FILTER RESULTS SCREEN ------------------------------------- */
.efb-screen {
  position: relative;
  background: transparent;
}
.efb-screen__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--efb-s1);
  border-bottom: 1px solid var(--efb-bdr);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.efb-back-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--efb-bdr);
  background: none;
  color: var(--efb-txt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.efb-screen__title { font-size: 15px; font-weight: 800; color: #fff; flex: 1; }

/* -- ARP / ATHLETE PROFILE ------------------------------------------------- */
.efb-arp-overlay {
  position: absolute;
  inset: 0;
  z-index: 300;
  background: var(--efb-s1);
  overflow-y: auto;
  scrollbar-width: none;
}
.efb-arp-overlay::-webkit-scrollbar { display: none; }
.efb-arp-overlay[hidden] { display: none !important; }
.efb-arp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 310;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--efb-bdr);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.efb-arp-hero {
  width: 100%;
  height: 260px;
  background: var(--efb-s2);
  position: relative;
  overflow: hidden;
}
.efb-arp-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.efb-arp-hgrad {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, var(--efb-s1), transparent);
}
.efb-arp-hinfo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}
.efb-arp-rank-badge {
  display: inline-flex;
  background: var(--efb-purple20);
  border: 1px solid var(--efb-purple);
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--efb-purple);
  margin-bottom: 5px;
}
.efb-arp-name { font-size: 26px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 3px; }
.efb-arp-meta { font-size: 11px; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.efb-portal-pill {
  background: rgba(21,128,61,0.2);
  border: 1px solid rgba(21,128,61,0.5);
  color: #4ade80;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
}
.efb-arp-body { padding: 14px; }
.efb-arp-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 16px; }
.efb-arp-stat { background: var(--efb-s2); border: 1px solid var(--efb-bdr); border-radius: 5px; padding: 10px 6px; text-align: center; }
.efb-arp-stat__val { font-size: 20px; font-weight: 800; color: var(--efb-purple); line-height: 1; }
.efb-arp-stat__label { font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--efb-dim); margin-top: 3px; }
.efb-arp-awards-title { font-size: 12px; font-weight: 800; color: var(--efb-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.efb-arp-awards { display: flex; gap: 6px; flex-wrap: wrap; }
.efb-arp-award { background: var(--efb-s2); border: 1px solid var(--efb-bdr); border-radius: 4px; padding: 5px 9px; font-size: 11px; color: var(--efb-txt); }
.efb-arp-view-more {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  background: var(--efb-s2);
  border: 1px solid var(--efb-bdr);
  border-radius: 6px;
  color: var(--efb-purple);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* -- METLE NO DATA --------------------------------------------------------- */
.efb-no-data {
  padding: 16px 14px 20px;
  text-align: center;
  color: var(--efb-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--efb-bdr);
}
.efb-no-data__icon { font-size: 24px; margin-bottom: 8px; }

/* -- SCORE / AWARD --------------------------------------------------------- */
.efb-score { font-weight: 700; color: var(--efb-purple); }
.efb-award-img { width: auto; height: 32px; object-fit: contain; }
.efb-award-name { font-size: 11px; font-weight: 600; color: var(--efb-txt); }

/* -- CTA BLOCK ------------------------------------------------------------- */
.efb-cta-block { margin: 24px 16px 32px; background: var(--efb-s2); border: 1px solid var(--efb-bdr); border-radius: 10px; padding: 20px 16px; text-align: center; }
.efb-cta-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--efb-purple); color: #fff; font-size: 14px; font-weight: 700; border-radius: 6px; padding: 10px 24px; text-decoration: none; }
.efb-cta-icon { width: 20px; height: 20px; border-radius: 50%; }

/* -- LOADING --------------------------------------------------------------- */
.efb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: var(--efb-muted);
  font-size: 13px;
  gap: 8px;
}
.efb-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--efb-bdr);
  border-top-color: var(--efb-purple);
  border-radius: 50%;
  animation: efb-spin 0.7s linear infinite;
}
@keyframes efb-spin { to { transform: rotate(360deg); } }

/* responsive handled below *//* Modal - exact v3.9.18 structure, appended to body */
.fb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding-bottom: 70px;
}
.fb-modal-overlay.is-open { opacity: 1; }
@media (min-width: 600px) {
  .fb-modal-overlay { align-items: center; padding: 20px; }
}
.fb-modal {
  background: var(--bb-content-background-color, #fff);
  color: var(--bb-body-text-color, #111);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.24s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.fb-modal-overlay.is-open .fb-modal { transform: translateY(0); }
@media (min-width: 600px) { .fb-modal { border-radius: 20px; } }
.fb-modal__header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.fb-modal__title { font-size: 16px; font-weight: 700; text-align: center; }
.fb-modal__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
}
.fb-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 20px;
  -webkit-overflow-scrolling: touch;
}
.fb-modal__section { margin-bottom: 22px; }
.fb-modal__section:last-child { margin-bottom: 0; }
.fb-modal__section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 10px;
}
.fb-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .fb-modal__grid { grid-template-columns: 1fr; } }
.fb-field__label { display: block; font-size: 12px; font-weight: 700; color: #666; margin-bottom: 5px; }
.fb-field--full { grid-column: 1 / -1; }
.fb-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  line-height: 1.3;
  appearance: auto;
  color: inherit;
  font-family: inherit;
}
.fb-select:focus { outline: 2px solid var(--efb-purple); outline-offset: 1px; }
.fb-select:disabled { opacity: 0.42; cursor: not-allowed; }
.fb-modal__footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.fb-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.fb-btn--ghost { background: #f0f0f0; color: #333; border: 1px solid rgba(0,0,0,0.1); }
.fb-btn--primary { background: var(--efb-purple); color: #fff; }
body.fb-modal-open { overflow: hidden !important; position: fixed; width: 100%; }

/* -- TRACK /* -- TRACK (horizontal scroll) --------------------------------------------- */
.efb-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 8px 14px;
  scrollbar-width: none;
}
.efb-track::-webkit-scrollbar { display: none; }

/* Featured top row -- edge to edge like Netflix hero row */
.efb-track--featured {
  padding: 0 0 14px 0;
  gap: 4px;
}
.efb-track--featured .efb-card--lg {
  border-radius: 0;
}
.efb-track--featured .efb-card--lg:first-child {
  border-radius: 0 6px 6px 0;
}
.efb-track--featured .efb-card--lg:last-child {
  border-radius: 6px 0 0 6px;
  margin-right: 14px;
}
.efb-track--featured .efb-ad-card {
  flex: 0 0 39vw;
  min-width: 140px;
  max-width: 220px;
}

/* -- CARD ------------------------------------------------------------------ */
.efb-card {
  flex: 0 0 27vw;
  min-width: 90px;
  max-width: 140px;
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: var(--efb-s2);
  border: 1px solid var(--efb-bdr);
  transition: none;
  text-decoration: none;
}
/* Featured/Top row: 2.5 tiles across */
.efb-card--lg {
  flex: 0 0 39vw;
  min-width: 140px;
  max-width: 220px;
}
.efb-card:hover { border-color: rgba(255,255,255,0.15); }

.efb-card__cover {
  width: 100%;
  aspect-ratio: 9/16;
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}
.efb-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -- FLEXPASS AD CARD ------------------------------------------------------ */
.efb-ad-card {
  flex: 0 0 27vw;
  min-width: 90px;
  max-width: 140px;
  text-decoration: none;
  display: block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(168,0,255,0.3);
  background: linear-gradient(145deg, #1a0033 0%, #2d0060 60%, #1a0033 100%);
}
.efb-ad-card__inner {
  width: 100%;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
}
.efb-ad-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 2px;
}
.efb-ad-card__headline {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--efb-gold);
  text-align: center;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.efb-ad-card__sub {
  font-size: 8px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.4;
  padding: 0 4px;
  white-space: nowrap;
}
.efb-ad-card__btn {
  margin-top: 4px;
  background: var(--efb-purple);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 4px 10px;
  box-shadow: 0 2px 8px rgba(168,0,255,0.45);
}

/* -- DIVIDER --------------------------------------------------------------- */
.efb-divider {
  height: 1px;
  background: var(--efb-bdr);
  margin: 2px 16px;
}

/* -- OVERLAY / SHEET ------------------------------------------------------- */
.efb-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 498;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: flex-start;
  padding-top: 96px;
}
.efb-overlay[hidden] { display: none !important; }

.efb-sheet {
  background: var(--efb-s1);
  border-radius: 0 0 16px 16px;
  width: 100%;
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--efb-bdr);
}
.efb-sheet::-webkit-scrollbar { display: none; }
.efb-sheet__inner { padding: 16px 16px 28px; }
.efb-sheet__title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.efb-sheet__sub {
  font-size: 11px;
  color: var(--efb-muted);
  margin-bottom: 12px;
}
.efb-sheet__clear-btn {
  background: none;
  border: 1px solid var(--efb-bdr);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--efb-muted);
  cursor: pointer;
}

/* -- FILTER SHEET ---------------------------------------------------------- */


/* -- TOP / METLE SHEET ITEMS ----------------------------------------------- */
.efb-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 7px;
  cursor: pointer;
  margin-bottom: 4px;
  background: var(--efb-s2);
  border: 1px solid var(--efb-bdr);
  transition: all 0.12s;
}
.efb-list-item:hover { border-color: rgba(255,255,255,0.15); }
.efb-list-item--on { background: var(--efb-purple20); border-color: var(--efb-purple); }
.efb-list-item__name { font-size: 14px; font-weight: 700; color: var(--efb-txt); }
.efb-list-item--on .efb-list-item__name { color: var(--efb-purple); }
.efb-list-item__dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--efb-dim); transition: all 0.12s; }
.efb-list-item__dot--on { background: var(--efb-purple); border-color: var(--efb-purple); }
.efb-list-item__mode {
  font-size: 10px; font-weight: 600; padding: 2px 7px;
  border-radius: 10px; background: rgba(255,255,255,0.07); color: var(--efb-muted);
}
.efb-list-item--on .efb-list-item__mode { background: var(--efb-purple20); color: var(--efb-purple); }

/* -- WATCHLIST SHEET ------------------------------------------------------- */
.efb-wl-empty { text-align: center; padding: 30px 20px; color: var(--efb-muted); font-size: 13px; }
.efb-wl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--efb-bdr);
  cursor: pointer;
}
.efb-wl-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.efb-wl-info { flex: 1; }
.efb-wl-name { font-size: 13px; font-weight: 700; color: var(--efb-txt); }
.efb-wl-meta { font-size: 11px; color: var(--efb-muted); margin-top: 1px; }
.efb-wl-remove {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--efb-bdr); background: none;
  color: var(--efb-muted); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* -- POSITION / FILTER RESULTS SCREEN ------------------------------------- */
.efb-screen {
  position: relative;
  background: transparent;
}
.efb-screen__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--efb-s1);
  border-bottom: 1px solid var(--efb-bdr);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.efb-back-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--efb-bdr);
  background: none;
  color: var(--efb-txt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.efb-screen__title { font-size: 15px; font-weight: 800; color: #fff; flex: 1; }

/* -- ARP / ATHLETE PROFILE ------------------------------------------------- */
.efb-arp-overlay {
  position: absolute;
  inset: 0;
  z-index: 300;
  background: var(--efb-s1);
  overflow-y: auto;
  scrollbar-width: none;
}
.efb-arp-overlay::-webkit-scrollbar { display: none; }
.efb-arp-overlay[hidden] { display: none !important; }
.efb-arp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 310;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--efb-bdr);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.efb-arp-hero {
  width: 100%;
  height: 260px;
  background: var(--efb-s2);
  position: relative;
  overflow: hidden;
}
.efb-arp-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.efb-arp-hgrad {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, var(--efb-s1), transparent);
}
.efb-arp-hinfo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}
.efb-arp-rank-badge {
  display: inline-flex;
  background: var(--efb-purple20);
  border: 1px solid var(--efb-purple);
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--efb-purple);
  margin-bottom: 5px;
}
.efb-arp-name { font-size: 26px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 3px; }
.efb-arp-meta { font-size: 11px; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.efb-portal-pill {
  background: rgba(21,128,61,0.2);
  border: 1px solid rgba(21,128,61,0.5);
  color: #4ade80;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
}
.efb-arp-body { padding: 14px; }
.efb-arp-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 16px; }
.efb-arp-stat { background: var(--efb-s2); border: 1px solid var(--efb-bdr); border-radius: 5px; padding: 10px 6px; text-align: center; }
.efb-arp-stat__val { font-size: 20px; font-weight: 800; color: var(--efb-purple); line-height: 1; }
.efb-arp-stat__label { font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--efb-dim); margin-top: 3px; }
.efb-arp-awards-title { font-size: 12px; font-weight: 800; color: var(--efb-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.efb-arp-awards { display: flex; gap: 6px; flex-wrap: wrap; }
.efb-arp-award { background: var(--efb-s2); border: 1px solid var(--efb-bdr); border-radius: 4px; padding: 5px 9px; font-size: 11px; color: var(--efb-txt); }
.efb-arp-view-more {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  background: var(--efb-s2);
  border: 1px solid var(--efb-bdr);
  border-radius: 6px;
  color: var(--efb-purple);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* -- METLE NO DATA --------------------------------------------------------- */
.efb-no-data {
  padding: 16px 14px 20px;
  text-align: center;
  color: var(--efb-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--efb-bdr);
}
.efb-no-data__icon { font-size: 24px; margin-bottom: 8px; }

/* -- SCORE / AWARD --------------------------------------------------------- */
.efb-score { font-weight: 700; color: var(--efb-purple); }
.efb-award-img { width: auto; height: 32px; object-fit: contain; }
.efb-award-name { font-size: 11px; font-weight: 600; color: var(--efb-txt); }

/* -- CTA BLOCK ------------------------------------------------------------- */
.efb-cta-block { margin: 24px 16px 32px; background: var(--efb-s2); border: 1px solid var(--efb-bdr); border-radius: 10px; padding: 20px 16px; text-align: center; }
.efb-cta-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--efb-purple); color: #fff; font-size: 14px; font-weight: 700; border-radius: 6px; padding: 10px 24px; text-decoration: none; }
.efb-cta-icon { width: 20px; height: 20px; border-radius: 50%; }

/* -- LOADING --------------------------------------------------------------- */
.efb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: var(--efb-muted);
  font-size: 13px;
  gap: 8px;
}
.efb-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--efb-bdr);
  border-top-color: var(--efb-purple);
  border-radius: 50%;
  animation: efb-spin 0.7s linear infinite;
}
@keyframes efb-spin { to { transform: rotate(360deg); } }

/* responsive handled below */
