.bangit-xfactor-wrap {
  margin: 0 0 0.85rem;
  padding: 0 0.25rem;
}

.bangit-xfactor-banner {
  border: 1px solid #3d2a00;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1200 0%, #0f0a00 45%, #07111f 100%);
  overflow: hidden;
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.08);
}

.bangit-xfactor-banner + .bangit-xfactor-banner {
  margin-top: 0.55rem;
}

.bangit-xfactor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 0.85rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(245, 166, 35, 0.22);
}

.bangit-xfactor-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.bangit-xfactor-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5a623;
}

.bangit-xfactor-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffe8c2;
  text-transform: capitalize;
}

.bangit-xfactor-sub {
  margin: 0.25rem 0 0;
  font-size: 0.74rem;
  color: #9fb0c8;
  line-height: 1.45;
}

.bangit-xfactor-open-btn {
  margin-left: auto;
  background: linear-gradient(180deg, #f5a623 0%, #c97d08 100%);
  border: 1px solid #ffd080;
  color: #1a0f00;
  border-radius: 8px;
  padding: 0.48rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}

.bangit-xfactor-open-btn:hover {
  filter: brightness(1.06);
}

.bangit-xfactor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem 0.65rem;
}

.bangit-xfactor-chip {
  font-size: 0.66rem;
  font-weight: 700;
  color: #f5c76a;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.bangit-card.has-xfactor {
  position: relative;
}

.bangit-xfactor-card-tags {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
}

.bangit-xfactor-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.bangit-xfactor-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.bangit-xfactor-card-tagline {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fecaca;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.bangit-xfactor-tag-pill,
.bangit-card .bangit-xfactor-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.24rem 0.55rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a0f00;
  background: linear-gradient(90deg, #f5a623, #ffd080);
  border: 1px solid #ffe8a8;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.35);
}

.bangit-xfactor-card-open {
  background: linear-gradient(180deg, #1a2744 0%, #0d1524 100%);
  border: 1px solid rgba(245, 166, 35, 0.55);
  color: #ffd080;
  border-radius: 6px;
  padding: 0.28rem 0.62rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.15);
}

.bangit-xfactor-card-open:hover {
  filter: brightness(1.08);
  border-color: #ffd080;
}

.bangit-xfactor-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: rgba(2, 8, 18, 0.88);
}

.bangit-xfactor-modal.is-open {
  display: flex;
}

.bangit-xfactor-panel {
  width: min(96vw, 1400px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #3d2a00;
  border-radius: 12px;
  background: linear-gradient(180deg, #0d1524 0%, #060c14 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.bangit-xfactor-panel-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #1a2744;
  background: linear-gradient(180deg, #0d1524 0%, #0a1220 100%);
}

.bangit-xfactor-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bangit-xfactor-final-strip {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(245, 166, 35, 0.28);
  background: rgba(28, 18, 4, 0.55);
}

.bangit-xfactor-final-strip strong {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f5a623;
}

.bangit-xfactor-final-strip span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffe8c2;
}

.bangit-xfactor-final-strip .is-pending {
  color: #9fb0c8;
  font-weight: 600;
}

.bangit-xfactor-final-strip .is-live {
  color: #7dffb2;
}

.bangit-xfactor-panel-title {
  text-transform: capitalize;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #f5a623;
}

.bangit-xfactor-panel-meta {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: #8fa8c8;
  line-height: 1.45;
}

.bangit-xfactor-close {
  margin-left: auto;
  background: transparent;
  border: 1px solid #2a4a6a;
  color: #9fd0ff;
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.bangit-xfactor-section {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #12243a;
}

.bangit-xfactor-section h4 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4eb3ff;
}

.bangit-xfactor-statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.45rem;
}

.bangit-xfactor-stat {
  background: #0a1628;
  border: 1px solid #14263d;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}

.bangit-xfactor-stat label {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #557799;
  margin-bottom: 0.15rem;
}

.bangit-xfactor-stat span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e8f4ff;
}

.bangit-xfactor-factor {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #081424;
  border: 1px solid #14263d;
}

.bangit-xfactor-factor strong {
  display: block;
  font-size: 0.76rem;
  color: #f5c76a;
  margin-bottom: 0.2rem;
}

.bangit-xfactor-factor p {
  margin: 0;
  font-size: 0.74rem;
  color: #b8c8dc;
  line-height: 1.45;
}

.bangit-xfactor-factor em {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.66rem;
  color: #6f91b5;
  font-style: normal;
}

.bangit-xfactor-process {
  margin: 0;
  font-size: 0.72rem;
  color: #6f91b5;
  line-height: 1.5;
}

.bangit-xfactor-note {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  color: #557799;
  line-height: 1.45;
  font-style: italic;
}

.bangit-xfactor-section.is-pregame h4 {
  color: #7dffb2;
}

.bangit-xfactor-section.is-postgame h4 {
  color: #f5a623;
}

.bangit-xfactor-factor.is-pregame {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(8, 28, 20, 0.65);
}

.bangit-xfactor-factor.is-proof {
  border-color: rgba(245, 166, 35, 0.28);
  background: rgba(28, 18, 4, 0.55);
}

.bangit-xfactor-match-table-wrap {
  overflow: auto;
  max-height: min(52vh, 520px);
  margin-top: 0.35rem;
  border: 1px solid rgba(245, 166, 35, 0.18);
  border-radius: 8px;
}

.bangit-xfactor-match-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}

.bangit-xfactor-match-table th {
  text-align: left;
  padding: 0.45rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5c76a;
  background: rgba(245, 166, 35, 0.08);
  border-bottom: 1px solid rgba(245, 166, 35, 0.2);
  white-space: nowrap;
}

.bangit-xfactor-match-table td {
  padding: 0.42rem 0.55rem;
  color: #d5e4f8;
  border-bottom: 1px solid #12243a;
  vertical-align: top;
}

.bangit-xfactor-match-table tr:last-child td {
  border-bottom: none;
}

.bangit-xfactor-match-table.is-near th {
  color: #ffd080;
}

.bangit-xfactor-match-name {
  font-weight: 800;
  color: #ffe8c2;
  min-width: 9rem;
  white-space: nowrap;
}

.bangit-xfactor-match-dk {
  font-weight: 800;
  color: #7dffb2;
  white-space: nowrap;
}

.bangit-xfactor-match-dk.is-pending {
  color: #6f91b5;
  font-weight: 600;
}

.bangit-xfactor-match-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a0f00;
  background: linear-gradient(90deg, #f5a623, #ffd080);
}

.bangit-xfactor-match-miss {
  color: #9fb0c8;
  font-size: 0.66rem;
  line-height: 1.35;
  max-width: 16rem;
}

.bangit-xfactor-match-score {
  font-weight: 800;
  color: #f5c76a;
  white-space: nowrap;
}

.bangit-xfactor-section.is-near h4 {
  color: #ffd080;
}

.bangit-xfactor-rank-hint {
  color: #6f91b5;
  font-style: italic;
}

.bangit-xfactor-stat-cell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.bangit-xfactor-stat-cell .bangit-stat-rank,
.bangit-xfactor-stat span .bangit-stat-rank {
  margin-left: 0.15rem;
}

.bangit-xfactor-panel .bangit-standout-strip {
  margin-bottom: 0.65rem;
}