.fx-widget {
   
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.fx-mode {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.fx-mode button {
  background: var(--tab-bg);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.fx-mode button:hover {
  background: var(--tab-hover);
}

.fx-mode button.active {
  background: var(--tab-active);
  color: var(--tab-active-text);
  border-color: var(--tab-active);
}

.fx-list {
  display: grid;
  gap: 12px;
 
}

.fx-competition {
  margin: 14px 12px 8px;
  padding: 12px 14px;
}

.fx-competition-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fx-competition-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.fx-competition-logo-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.fx-competition-title {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.comp-country {
  flex-shrink: 0; /* never shrink */
  font-size: 16px;
  color:var(--text-muted);
  font-weight:700; margin-right:7px;
  text-transform:uppercase;
}



.comp-name {
  overflow: hidden;
  text-transform:uppercase;
  font-size:16px;font-weight:700;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  color:var(--text-soft);
}
.fx-card {
  cursor: pointer;
}

.fx-team-side {
  cursor: default;
}
.fx-card {
   
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: stretch;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  cursor: pointer;
  
}

.fx-card:hover {
  border-color: var(--border-strong);
}



.fx-date-box {
  height: 100%;
  min-height: 50px;
  border-radius: 18px;
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fx-date-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.1;
  text-align: center;
}

.fx-date-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.1;
}

.fx-main-col {
  padding: 12px 14px 12px 0;
  display: grid;
  gap: 5px;
  align-content: center;
  min-width: 0;
}

.fx-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  min-width: 0;
  
}

.fx-team-side {
  display: flex;
  align-items: center;

  min-width: 0;
  flex: 1 1 auto;
  
}

.fx-team-link {
  cursor: pointer;
}

.fx-team-link:hover .fx-team-name {
  color: var(--primary);
}

.fx-team-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
  margin-right:5px;
}

.fx-team-row.fx-win .fx-team-name,
.fx-team-row.fx-win .fx-score {
  color: var(--text-muted);
}

.fx-team-row.fx-draw .fx-team-name,
.fx-team-row.fx-draw .fx-score {
  color: var(--text-muted);
}






.fx-team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-score-side {
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.fx-score {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.fx-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  border-radius: 999px;
   color: var(--text-muted);
  font-size: 20px;
  font-weight: 900;
}

.fx-time-empty {
  display: inline-block;
  min-width: 56px;
  height: 1px;
}

.fx-limit-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 12px 12px;
}

.fx-limit-bar > span {
  color: var(--text-soft);
  font-size: 14px;
}

.fx-limit-bar button {
  min-width: 62px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.fx-limit-bar button.active {
  background: var(--tab-active);
  color: var(--tab-active-text);
  border-color: var(--tab-active);
}

.fx-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-muted);
}


.fx-card {
  position: relative;
  padding-right: 52px;
}



.fx-form-badge {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}

.fx-form-w {
  background: #22c55e;
}

.fx-form-d {
  background: #6b7280;
}

.fx-form-l {
  background: #ef4444;
}


@media (max-width: 768px) {
  .fx-mode {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .fx-mode button {
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
  }

  .fx-list {
    gap: 10px;
   
  }

  .fx-competition {
    margin: 12px 10px 8px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .fx-competition-logo-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .fx-competition-logo-wrap img {
    width: 20px;
    height: 20px;
  }

  .fx-competition-title {
    font-size: 13px;
  }

  .fx-card {
    grid-template-columns: 86px 1fr;
    gap: 8px;
    border-radius: 16px;
  }

  .fx-date-col {
    padding: 8px;
  }

  .fx-date-box {
    min-height: 60px;
    border-radius: 14px;
    gap: 4px;
  }

  .fx-date-main {
    font-size: 14px;
  }

  .fx-date-year {
    font-size: 13px;
  }

  .fx-main-col {
    padding: 10px 10px 10px 0;
    gap: 8px;
  }

  .fx-team-side {
    gap: 8px;
  }

  .fx-team-logo {
    width: 20px;
    height: 20px;
  }

  .fx-team-name {
    font-size: 14px;
  }

  .fx-score {
    font-size: 16px;
  }

  .fx-time-pill {
    min-width: 50px;
    font-size: 11px;
    padding: 3px 7px;
  }

  .fx-time-empty {
    min-width: 50px;
  }

  .fx-limit-bar {
    width:100%; display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13px;color:var(--text-muted);padding:10px; 
  }

  .fx-limit-bar button {
    min-width: 50px;
    height: 42px;
    padding: 0 6px;
    font-size: 13px;
    border-radius: 14px;
  }
}